Removed extraenous fflush and made debug loggable.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@502 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-04-17 15:36:54 +00:00
parent 172c2fb659
commit 28c9d9eab9
1 changed files with 3 additions and 6 deletions

View File

@ -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;