]> granicus.if.org Git - p11-kit/commitdiff
tool: Only include debug lines marked 'tool' when --verbose
authorStef Walter <stef@thewalter.net>
Tue, 27 Aug 2013 18:54:09 +0000 (20:54 +0200)
committerStef Walter <stef@thewalter.net>
Wed, 28 Aug 2013 11:14:32 +0000 (13:14 +0200)
Otherwise we get all sorts of overwhelming internal debugging
when someone specifies --verbose argument to a tool.

common/tool.c

index 70bb4d200a025e8a1e2be6ed4bd7f7ae2286a102..cca18a212d60a7e5156d4ef5897e61d67d40a99e 100644 (file)
@@ -182,8 +182,9 @@ command_usage (const p11_tool_command *commands)
 static void
 verbose_arg (void)
 {
-       putenv ("P11_KIT_DEBUG=all");
+       putenv ("P11_KIT_DEBUG=tool");
        p11_message_loud ();
+       p11_debug_init ();
 }
 
 static void
@@ -191,6 +192,7 @@ quiet_arg (void)
 {
        putenv ("P11_KIT_DEBUG=");
        p11_message_quiet ();
+       p11_debug_init ();
 }
 
 int