[Pcsclite-git-commit] [PCSC] 01/02: Enable info level logging
Ludovic Rousseau
rousseau at moszumanska.debian.org
Tue Jun 6 16:00:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository PCSC.
commit fa313f5442e78d312e18e025906a0ab43aa27a5e
Author: Maximilian Stein <Maximilian.Stein at secunet.com>
Date: Wed May 3 15:29:45 2017 +0200
Enable info level logging
---
src/pcscdaemon.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/pcscdaemon.c b/src/pcscdaemon.c
index 7311e4c..0102a4e 100644
--- a/src/pcscdaemon.c
+++ b/src/pcscdaemon.c
@@ -274,7 +274,7 @@ int main(int argc, char **argv)
{"version", 0, NULL, 'v'},
{"apdu", 0, NULL, 'a'},
{"debug", 0, NULL, 'd'},
- {"info", 0, NULL, 0},
+ {"info", 0, NULL, 'i'},
{"error", 0, NULL, 'e'},
{"critical", 0, NULL, 'C'},
{"hotplug", 0, NULL, 'H'},
@@ -288,7 +288,7 @@ int main(int argc, char **argv)
{NULL, 0, NULL, 0}
};
#endif
-#define OPT_STRING "c:fTdhvaeCHt:r:s:xSI"
+#define OPT_STRING "c:fTdhvaieCHt:r:s:xSI"
newReaderConfig = NULL;
setToForeground = FALSE;
@@ -354,6 +354,10 @@ int main(int argc, char **argv)
DebugLogSetLevel(PCSC_LOG_DEBUG);
break;
+ case 'i':
+ DebugLogSetLevel(PCSC_LOG_INFO);
+ break;
+
case 'e':
DebugLogSetLevel(PCSC_LOG_ERROR);
break;
@@ -846,7 +850,7 @@ static void print_usage(char const * const progname)
printf(" -H, --hotplug ask the daemon to rescan the available readers\n");
printf(" -v, --version display the program version number\n");
printf(" -d, --debug display lower level debug messages\n");
- printf(" --info display info level debug messages\n");
+ printf(" -i, --info display info level debug messages\n");
printf(" -e --error display error level debug messages (default level)\n");
printf(" -C --critical display critical only level debug messages\n");
printf(" --force-reader-polling ignore the IFD_GENERATE_HOTPLUG reader capability\n");
@@ -862,6 +866,7 @@ static void print_usage(char const * const progname)
printf(" -f run in foreground (no daemon), send logs to stdout instead of syslog\n");
printf(" -T force use of colored logs\n");
printf(" -d display debug messages.\n");
+ printf(" -i display info messages.\n");
printf(" -e display error messages (default level).\n");
printf(" -C display critical messages.\n");
printf(" -h display usage information\n");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git
More information about the Pcsclite-cvs-commit
mailing list