| ... | @@ -155,11 +155,8 @@ pub fn log( | ... | @@ -155,11 +155,8 @@ pub fn log( |
| 155 | } else return; | 155 | } else return; |
| 156 | } | 156 | } |
| 157 | | 157 | |
| 158 | const prefix1 = comptime level.asText(); | 158 | // Otherwise, use the default implementation. |
| 159 | const prefix2 = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): "; | 159 | std.log.defaultLog(level, scope, format, args); |
| 160 | | | |
| 161 | // Print the message to stderr, silently ignoring any errors | | |
| 162 | std.debug.print(prefix1 ++ prefix2 ++ format ++ "\n", args); | | |
| 163 | } | 160 | } |
| 164 | | 161 | |
| 165 | var debug_allocator: std.heap.DebugAllocator(.{ | 162 | var debug_allocator: std.heap.DebugAllocator(.{ |