From 28c9d9eab9d993bc3f47941ce3706f8c4acf5589 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 17 Apr 2003 15:36:54 +0000 Subject: [PATCH] Removed extraenous fflush and made debug loggable. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@502 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_debug.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/zm_debug.c b/src/zm_debug.c index f04b9442f..0e0a795f2 100644 --- a/src/zm_debug.c +++ b/src/zm_debug.c @@ -329,12 +329,8 @@ int zmDbgOutput( const char *fstring, ... ) } } /* For Info, Warning, Errors etc we want to log them */ - if ( zm_dbg_code <= ZM_DBG_INF ) + if ( 1 || zm_dbg_code <= ZM_DBG_INF ) { - if ( !zm_dbg_flush ) - { - fflush(zm_dbg_log_fd); - } switch(zm_dbg_code) { case ZM_DBG_INF: @@ -350,7 +346,8 @@ int zmDbgOutput( const char *fstring, ... ) log_code = LOG_CRIT; break; default: - log_code = LOG_CRIT; + //log_code = LOG_DEBUG; + log_code = LOG_INFO; break; } log_code |= LOG_LOCAL1;