mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-31 17:49:11 +00:00
Console log: output timestamp (seconds since start) for resolver, too
This commit is contained in:
parent
027cf22267
commit
9308541e6d
@ -334,11 +334,11 @@ va_dcl
|
|||||||
vsnprintf( msg, MAX_LOG_MSG_LEN, Format, ap );
|
vsnprintf( msg, MAX_LOG_MSG_LEN, Format, ap );
|
||||||
va_end( ap );
|
va_end( ap );
|
||||||
|
|
||||||
if( ! Is_Daemon )
|
if (!Is_Daemon) {
|
||||||
{
|
|
||||||
/* Output to console */
|
/* Output to console */
|
||||||
fprintf( stdout, "[%d:%d] %s\n", (int)getpid( ), Level, msg );
|
fprintf(stdout, "[%d:%d %4ld] %s\n", (int)getpid( ), Level,
|
||||||
fflush( stdout );
|
time(NULL) - NGIRCd_Start, msg);
|
||||||
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
#ifdef SYSLOG
|
#ifdef SYSLOG
|
||||||
else syslog( Level, "%s", msg );
|
else syslog( Level, "%s", msg );
|
||||||
|
Loading…
Reference in New Issue
Block a user