[Pcsclite-cvs-commit] CVS PCSC/src
CVS User rousseau
ludovic.rousseau@free.fr
Wed, 25 May 2005 14:20:18 +0000
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv31898
Modified Files:
debuglog.c
Log Message:
DebugLogSetLevel(): do not print anything if the level is critical or
error in order to not "polute" logs in normal cases.
--- /cvsroot/pcsclite/PCSC/src/debuglog.c 2005/05/25 07:21:01 1.43
+++ /cvsroot/pcsclite/PCSC/src/debuglog.c 2005/05/25 14:20:18 1.44
@@ -6,7 +6,7 @@
* Copyright (C) 1999-2005
* Ludovic Rousseau <ludovic.rousseau@free.fr>
*
- * $Id: debuglog.c,v 1.43 2005/05/25 07:21:01 rousseau Exp $
+ * $Id: debuglog.c,v 1.44 2005/05/25 14:20:18 rousseau Exp $
*/
/**
@@ -195,19 +195,16 @@
switch (level)
{
case PCSC_LOG_CRITICAL:
- Log1(PCSC_LOG_CRITICAL, "debug level=critical");
- break;
-
case PCSC_LOG_ERROR:
- Log1(PCSC_LOG_CRITICAL, "debug level=error");
+ /* do not log anything */
break;
case PCSC_LOG_INFO:
- Log1(PCSC_LOG_CRITICAL, "debug level=notice");
+ Log1(PCSC_LOG_INFO, "debug level=notice");
break;
case PCSC_LOG_DEBUG:
- Log1(PCSC_LOG_CRITICAL, "debug level=debug");
+ Log1(PCSC_LOG_DEBUG, "debug level=debug");
break;
default: