Skip to content

Commit ca692a5

Browse files
committed
Update files
1 parent 2d70000 commit ca692a5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

lists/to-release

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
binproxy
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--- a/bin/binproxy 2025-12-23 03:51:08.760564496 +0100
2+
+++ b/bin/binproxy 2025-12-23 03:52:22.715842720 +0100
3+
@@ -65,11 +65,12 @@
4+
FATAL: :red,
5+
}
6+
#formatter.call(sev,date,prog,msg).colorize(colors[sev.to_sym] ||:light_blue)
7+
- line = caller.find {|l| !l.match /logger\.rb/ }
8+
- cm = line.match(%r|^.*/([^/]+):(\d+):in `(.*)'$|) or raise "Couldn't parse caller() line"
9+
+ loc = caller_locations.find { |l| !(l.absolute_path || l.path).match?(/logger\.rb/) } || caller_locations(1,1).first
10+
+ file = File.basename(loc.absolute_path || loc.path)
11+
+ line = loc.lineno
12+
msg = msg.gsub /\r?\n/, ("\n" + " " * 25)
13+
sprintf( "%-18s %-5s %s\n",
14+
- "#{cm[1]}:#{cm[2]}", sev, msg
15+
+ "#{file}:#{line}", sev, msg
16+
).colorize(colors[sev.to_sym] ||:light_blue)
17+
end
18+
log.level = case

0 commit comments

Comments
 (0)