summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/ngircd/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/log.c b/src/ngircd/log.c
index fbe87f0e..5edbf368 100644
--- a/src/ngircd/log.c
+++ b/src/ngircd/log.c
@@ -334,11 +334,11 @@ va_dcl
 	vsnprintf( msg, MAX_LOG_MSG_LEN, Format, ap );
 	va_end( ap );
 
-	if( ! Is_Daemon )
-	{
+	if (!Is_Daemon) {
 		/* Output to console */
-		fprintf( stdout, "[%d:%d] %s\n", (int)getpid( ), Level, msg );
-		fflush( stdout );
+		fprintf(stdout, "[%d:%d %4ld] %s\n", (int)getpid( ), Level,
+			time(NULL) - NGIRCd_Start, msg);
+		fflush(stdout);
 	}
 #ifdef SYSLOG
 	else syslog( Level, "%s", msg );