Fix stdout error
This commit is contained in:
parent
6ccfc7feb9
commit
c6725f6b54
@ -11,11 +11,10 @@ var path_buffer: [1024 * 1024]u8 = undefined;
|
||||
var fa = std.heap.FixedBufferAllocator.init(&map_error_buffer);
|
||||
const allocator = fa.allocator();
|
||||
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
|
||||
// Maybe create a struct for that
|
||||
pub fn send(comptime format: []const u8, args: anytype) void {
|
||||
if (config.DONT_SEND) return;
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
|
||||
stdout.print(format, args) catch |err| {
|
||||
log.err("Can't send: {any}", .{err});
|
||||
|
Loading…
x
Reference in New Issue
Block a user