Skip to content

Commit

Permalink
increase log buffer size from 1024 to 4096
Browse files Browse the repository at this point in the history
This doesn't usually make a difference except when using --enable-message-tracing
  • Loading branch information
Techatrix committed Nov 7, 2024
1 parent d045340 commit 07d46f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn logFn(
const scope_txt: []const u8 = comptime @tagName(scope);
const trimmed_scope = if (comptime std.mem.startsWith(u8, scope_txt, "zls_")) scope_txt[4..] else scope_txt;

var buffer: [1024]u8 = undefined;
var buffer: [4096]u8 = undefined;
var fbs = std.io.fixedBufferStream(&buffer);
const no_space_left = blk: {
fbs.writer().print("{s} ({s:^6}): ", .{ level_txt, trimmed_scope }) catch break :blk true;
Expand Down

0 comments on commit 07d46f2

Please sign in to comment.