Skip to content

Commit

Permalink
fix std options struct to fix CI fail (keep-starknet-strange#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
lana-shanghai authored Feb 13, 2024
1 parent 1c108c0 commit 3a04e6a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ const customlogFn = @import("utils/log.zig").logFn;
// *****************************************************************************

/// Standard library options.
pub const std_options = struct {
/// Define the global log level.
/// TODO: Make this configurable.
pub const log_level = .debug;
/// Define the log scope levels for each library.
/// TODO: Make this configurable.
pub const log_scope_levels = &[_]std.log.ScopeLevel{};
// Define logFn to override the std implementation
pub const logFn = customlogFn;
/// log_level and log_scope_levels make it configurable.
pub const std_options = .{
.logFn = customlogFn,
.log_level = .debug,
.log_scope_levels = &[_]std.log.ScopeLevel{},
};

// *****************************************************************************
Expand Down

0 comments on commit 3a04e6a

Please sign in to comment.