summaryrefslogtreecommitdiffstats
path: root/include/log.c
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-04-14 14:21:49 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-04-14 14:21:49 +0000
commit4a66f3018c112b3b341f734dddaf87626cb0fbab (patch)
tree1c964ee8173bf61402f4d7124fd89b860e294765 /include/log.c
parent3c264ecf3543daf6b78a816aa2a9375dc43044bf (diff)
- new algorithm for audible notification in screen "Status of Triggers"
(Alexei) - changed definition of DebugLevel (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@350 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/log.c')
-rw-r--r--include/log.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/log.c b/include/log.c
index fd621e85..3ffb4cc6 100644
--- a/include/log.c
+++ b/include/log.c
@@ -18,7 +18,13 @@ static int log_level;
int zabbix_open_log(int type,int level, const char *filename)
{
+/* Just return if we do not want to write debug */
log_level = level;
+ if(level == LOG_LEVEL_EMPTY)
+ {
+ return SUCCEED;
+ }
+
if(type == LOG_TYPE_SYSLOG)
{
openlog("zabbix_suckerd",LOG_PID,LOG_USER);
@@ -50,7 +56,7 @@ void zabbix_log(int level, const char *fmt, ...)
struct tm *tm;
va_list ap;
- if(level<log_level)
+ if( (level>log_level) || (level == LOG_LEVEL_EMPTY))
{
return;
}