mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.log: adjust default level for ReleaseSmall to include info
it was kind of wild to not do this before. sorry!
This commit is contained in:
parent
820f1a23a5
commit
36cf22c55c
@ -101,8 +101,7 @@ pub const Level = enum {
|
|||||||
/// The default log level is based on build mode.
|
/// The default log level is based on build mode.
|
||||||
pub const default_level: Level = switch (builtin.mode) {
|
pub const default_level: Level = switch (builtin.mode) {
|
||||||
.Debug => .debug,
|
.Debug => .debug,
|
||||||
.ReleaseSafe => .info,
|
.ReleaseSafe, .ReleaseFast, .ReleaseSmall => .info,
|
||||||
.ReleaseFast, .ReleaseSmall => .err,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const level = std.options.log_level;
|
const level = std.options.log_level;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user