[asterisk-commits] russell: branch group/security_events r194744 - in /team/group/security_event...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 15 13:22:14 CDT 2009


Author: russell
Date: Fri May 15 13:22:08 2009
New Revision: 194744

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=194744
Log:
Revert original LOG_SECURITY patch that I had here temporarily

Modified:
    team/group/security_events/apps/app_verbose.c
    team/group/security_events/configs/logger.conf.sample
    team/group/security_events/include/asterisk/logger.h
    team/group/security_events/main/logger.c

Modified: team/group/security_events/apps/app_verbose.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/apps/app_verbose.c?view=diff&rev=194744&r1=194743&r2=194744
==============================================================================
--- team/group/security_events/apps/app_verbose.c (original)
+++ team/group/security_events/apps/app_verbose.c Fri May 15 13:22:08 2009
@@ -59,7 +59,7 @@
 		<syntax>
 			<parameter name="level">
 				<para>Level must be one of <literal>ERROR</literal>, <literal>WARNING</literal>, <literal>NOTICE</literal>,
-				<literal>DEBUG</literal>, <literal>VERBOSE</literal>, <literal>DTMF</literal> or <literal>SECURITY</literal>.</para>	
+				<literal>DEBUG</literal>, <literal>VERBOSE</literal> or <literal>DTMF</literal>.</para>	
 			</parameter>
 			<parameter name="message" required="true">
 				<para>Output text message.</para>
@@ -146,8 +146,6 @@
 		lnum = __LOG_VERBOSE;
 	} else if (!strcasecmp(args.level, "DTMF")) {
 		lnum = __LOG_DTMF;
-	} else if (!strcasecmp(args.level, "SECURITY")) {
-		lnum = __LOG_SECURITY;
 	} else {
 		ast_log(LOG_ERROR, "Unknown log level: '%s'\n", args.level);
 	}

Modified: team/group/security_events/configs/logger.conf.sample
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/configs/logger.conf.sample?view=diff&rev=194744&r1=194743&r2=194744
==============================================================================
--- team/group/security_events/configs/logger.conf.sample (original)
+++ team/group/security_events/configs/logger.conf.sample Fri May 15 13:22:08 2009
@@ -66,7 +66,6 @@
 ;    error
 ;    verbose
 ;    dtmf
-;    security
 ;
 ; Special filename "console" represents the system console
 ;
@@ -90,7 +89,6 @@
 ;console => notice,warning,error,debug
 messages => notice,warning,error
 ;full => notice,warning,error,debug,verbose
-security => security
 
 ;syslog keyword : This special keyword logs to syslog facility 
 ;

Modified: team/group/security_events/include/asterisk/logger.h
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/include/asterisk/logger.h?view=diff&rev=194744&r1=194743&r2=194744
==============================================================================
--- team/group/security_events/include/asterisk/logger.h (original)
+++ team/group/security_events/include/asterisk/logger.h Fri May 15 13:22:08 2009
@@ -178,18 +178,7 @@
 #endif
 #define AST_LOG_DTMF    __LOG_DTMF, _A_
 
-#ifdef LOG_SECURITY
-#undef LOG_SECURITY
-#endif
-#define __LOG_SECURITY  7
-#define LOG_SECURITY    __LOG_SECURITY, _A_
-
-#ifdef AST_LOG_SECURITY
-#undef AST_LOG_SECURITY
-#endif
-#define AST_LOG_SECURITY    __LOG_SECURITY, _A_
-
-#define NUMLOGLEVELS 7
+#define NUMLOGLEVELS 6
 
 /*!
  * \brief Get the debug level for a file

Modified: team/group/security_events/main/logger.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/main/logger.c?view=diff&rev=194744&r1=194743&r2=194744
==============================================================================
--- team/group/security_events/main/logger.c (original)
+++ team/group/security_events/main/logger.c Fri May 15 13:22:08 2009
@@ -160,8 +160,7 @@
 	"WARNING",
 	"ERROR",
 	"VERBOSE",
-	"DTMF",
-	"SECURITY",
+	"DTMF"
 };
 
 /*! \brief Colors used in the console for logging */
@@ -201,8 +200,6 @@
 			res |= (1 << __LOG_VERBOSE);
 		else if (!strcasecmp(w, "dtmf"))
 			res |= (1 << __LOG_DTMF);
-		else if (!strcasecmp(w, "security"))
-			res |= (1 << __LOG_SECURITY);
 		else {
 			fprintf(stderr, "Logfile Warning: Unknown keyword '%s' at line %d of logger.conf\n", w, lineno);
 		}
@@ -349,7 +346,7 @@
 		if (!(chan = ast_calloc(1, sizeof(*chan))))
 			return;
 		chan->type = LOGTYPE_CONSOLE;
-		chan->logmask = (1 << __LOG_WARNING) | (1 << __LOG_NOTICE) | (1 << __LOG_ERROR);
+		chan->logmask = 28; /*warning,notice,error */
 		if (!locked)
 			AST_RWLIST_WRLOCK(&logchannels);
 		AST_RWLIST_INSERT_HEAD(&logchannels, chan, list);
@@ -760,8 +757,6 @@
 			ast_cli(a->fd, "Debug ");
 		if (chan->logmask & (1 << __LOG_DTMF)) 
 			ast_cli(a->fd, "DTMF ");
-		if (chan->logmask & (1 << __LOG_SECURITY)) 
-			ast_cli(a->fd, "Security ");
 		if (chan->logmask & (1 << __LOG_VERBOSE)) 
 			ast_cli(a->fd, "Verbose ");
 		if (chan->logmask & (1 << __LOG_WARNING)) 




More information about the asterisk-commits mailing list