mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Console log: output timestamp (seconds since start of daemon)
This commit is contained in:
		| @@ -248,11 +248,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) { | ||||||
| 	{ | 		/* log to console */ | ||||||
| 		/* auf Konsole ausgeben */ | 		fprintf(stdout, "[%d:%d %4ld] %s\n", (int)getpid( ), Level, | ||||||
| 		fprintf( stdout, "[%d:%d] %s\n", (int)getpid( ), Level, msg ); | 			time(NULL) - NGIRCd_Start, msg); | ||||||
| 		fflush( stdout ); | 		fflush(stdout); | ||||||
| 	} | 	} | ||||||
| #ifdef SYSLOG | #ifdef SYSLOG | ||||||
| 	else | 	else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton