Log level of management interface: patch from 2009
Hello,
in May 2009 James committed in423037e9fbdff7209ca6f305b812a9908a0f4d13
"Reduce the debug level (--verb) at which received management interface commands are echoed from 7 to 3."
A search for comments or a reason did not reveal more informarion. I use the management extensively and these regular management commands bloat the log at the default --verb 3 with at least 3 lines (enter/command/exit).
I do not wish to start a debate if this is reasonable or not. The fact, that this #define is still amongst verb 7 defines in the code raises the feeling, that this has simply been forgotten.
If this is true, you can use the attached patch, that tosses this single (!) bit. :-)
Signature · 2 lines
Servus Michael
From 78e3853622fe41f4aa638e887f5fd4f064be6c07 Mon Sep 17 00:00:00 2001
From: Michael Kress <[email protected]...>
Date: Wed, 22 Feb 2012 19:50:45 +0100
Subject: [PATCH] Increase the debug level (--verb) at which received management
interface commands are echoed from 3 to 7.
--- errlevel.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
errlevel.h +1 -1
@@ -133,7 +133,7 @@#define D_SEMAPHORE_LOW LOGLEV(7, 70, M_DEBUG)/* show Win32 semaphore waits (low freq) */ #define D_SEMAPHORE LOGLEV(7, 70, M_DEBUG)/* show Win32 semaphore waits */ #define D_TEST_FILE LOGLEV(7, 70, M_DEBUG)/* show test_file() calls */ -#define D_MANAGEMENT_DEBUG LOGLEV(3, 70, M_DEBUG)/* show --management debug info */ +#define D_MANAGEMENT_DEBUG LOGLEV(7, 70, M_DEBUG)/* show --management debug info */ #define D_PLUGIN_DEBUG LOGLEV(7, 70, M_DEBUG)/* show verbose plugin calls */ #define D_SOCKET_DEBUG LOGLEV(7, 70, M_DEBUG)/* show socket.[ch] debugging info */ #define D_SHOW_PKCS11 LOGLEV(7, 70, M_DEBUG)/* show PKCS#11 actions */
Signature · 1 line
1.7.3.4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 13 lines · Michael Kress
Hello,
in May 2009 James committed in
423037e9fbdff7209ca6f305b812a9908a0f4d13"Reduce the debug level (--verb) at which received management interface commands are echoed from 7 to 3."
A search for comments or a reason did not reveal more informarion. I use the management extensively and these regular management commands bloat the log at the default --verb 3 with at least 3 lines (enter/command/exit).
Quoted 6 lines
I do not wish to start a debate if this is reasonable or not. The fact, that this #define is still amongst verb 7 defines in the code raises the feeling, that this has simply been forgotten.
If this is true, you can use the attached patch, that tosses this single (!) bit. :-)
As that commit from James is explicitly changing only this value, with a commit message which is quite descriptive - I'm not convinced it's right of us to revert this patch. When James makes such explicit changes, it mostly is for a good reason - we just might not know exactly why.
James, would you have the chance to comment on this request? Michael Kress' patch basically reverts your commit (r4413).
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9y1RsACgkQDC186MBRfrpLYgCdHtJZ598Sn17590IYWTWXcHDc C7IAnjEciz/nc7M0Zlm4Et6/fbhC/IJx
=FnVj
-----END PGP SIGNATURE-----