From d3a7edcadc7d9bcbee4ed197fc1d72d7c0da3640 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sun, 5 Jun 2022 18:23:16 -0700 Subject: [PATCH] change verbosity levels to remove more noise --- src/main.zig | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main.zig b/src/main.zig index 938a2d4..22ecdc9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -12,19 +12,22 @@ pub fn log( args: anytype, ) void { // Ignore aws_signing messages - if (verbose < 2 and scope == .aws_signing and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) + if (verbose < 3 and scope == .aws_signing and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) return; // Ignore aws_credentials messages - if (verbose < 2 and scope == .aws_credentials and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) + if (verbose < 3 and scope == .aws_credentials and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) return; // Ignore xml_shaper messages - if (verbose < 2 and scope == .xml_shaper and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) + if (verbose < 3 and scope == .xml_shaper and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) return; // Ignore date messages - if (verbose < 2 and scope == .date and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) + if (verbose < 3 and scope == .date and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) return; // Ignore awshttp messages - if (verbose < 1 and scope == .awshttp and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) + if (verbose < 2 and scope == .awshttp and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) + return; + + if (verbose < 1 and scope == .aws and @enumToInt(level) >= @enumToInt(std.log.Level.debug)) return; const scope_prefix = "(" ++ @tagName(scope) ++ "): "; const prefix = "[" ++ @tagName(level) ++ "] " ++ scope_prefix;