Added <nome> when no debug log.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1214 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-01-15 18:47:57 +00:00
parent c993756368
commit 810b9a0adc
1 changed files with 1 additions and 4 deletions

View File

@ -76,9 +76,6 @@ int zmGetDebugEnv()
char buffer[128]; char buffer[128];
char *env_ptr; char *env_ptr;
/* zm_dbg_level = 0; */
/* zm_dbg_log[0] = '\0'; */
env_ptr = getenv( "ZM_DBG_PRINT" ); env_ptr = getenv( "ZM_DBG_PRINT" );
if ( env_ptr == (char *)NULL ) if ( env_ptr == (char *)NULL )
{ {
@ -213,7 +210,7 @@ int zmDebugInitialise( const char *name, const char *id, int level )
Error(("fopen() for %s, error = %s",zm_dbg_log,strerror(errno))); Error(("fopen() for %s, error = %s",zm_dbg_log,strerror(errno)));
return(ZM_DBG_ERROR); return(ZM_DBG_ERROR);
} }
Info(("Debug Level = %d, Debug Log = %s",zm_dbg_level,zm_dbg_log)); Info(( "Debug Level = %d, Debug Log = %s", zm_dbg_level,zm_dbg_log[0]?zm_dbg_log:"<none>" ));
{ {
struct sigaction action, old_action; struct sigaction action, old_action;