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);
|
var fa = std.heap.FixedBufferAllocator.init(&map_error_buffer);
|
||||||
const allocator = fa.allocator();
|
const allocator = fa.allocator();
|
||||||
|
|
||||||
const stdout = std.io.getStdOut().writer();
|
|
||||||
|
|
||||||
// Maybe create a struct for that
|
// Maybe create a struct for that
|
||||||
pub fn send(comptime format: []const u8, args: anytype) void {
|
pub fn send(comptime format: []const u8, args: anytype) void {
|
||||||
if (config.DONT_SEND) return;
|
if (config.DONT_SEND) return;
|
||||||
|
const stdout = std.io.getStdOut().writer();
|
||||||
|
|
||||||
stdout.print(format, args) catch |err| {
|
stdout.print(format, args) catch |err| {
|
||||||
log.err("Can't send: {any}", .{err});
|
log.err("Can't send: {any}", .{err});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user