diff options
| author | Alexander Barton <alex@barton.de> | 2001-12-25 23:13:00 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2001-12-25 23:13:00 +0000 |
| commit | f2c7d188ca10f1dd04514156e33c62c04157e10f (patch) | |
| tree | 84c4c3324ad354759330e3048f71da40747ee940 | |
| parent | d4a60bd4a784743ed1f5ee425ba2701e310b3689 (diff) | |
| download | ngircd-f2c7d188ca10f1dd04514156e33c62c04157e10f.tar.gz ngircd-f2c7d188ca10f1dd04514156e33c62c04157e10f.zip | |
- Versionsstring bei Programmstart verbessert.
| -rw-r--r-- | src/ngircd/log.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 7fb9ac15..266b9539 100644 --- a/src/ngircd/log.c +++ b/src/ngircd/log.c @@ -9,11 +9,14 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: log.c,v 1.7 2001/12/25 22:04:26 alex Exp $ + * $Id: log.c,v 1.8 2001/12/25 23:13:00 alex Exp $ * * log.c: Logging-Funktionen * * $Log: log.c,v $ + * Revision 1.8 2001/12/25 23:13:00 alex + * - Versionsstring bei Programmstart verbessert. + * * Revision 1.7 2001/12/25 22:04:26 alex * - Aenderungen an den Debug- und Logging-Funktionen. * @@ -55,8 +58,23 @@ GLOBAL VOID Log_Init( VOID ) { + CHAR txt[64]; + + strcpy( txt, "" ); + +#ifdef DEBUG + if( txt[0] ) strcat( txt, "+" ); + else strcat( txt, "-" ); + strcat( txt, "DEBUG" ); +#endif +#ifdef SNIFFER + if( txt[0] ) strcat( txt, "+" ); + else strcat( txt, "-" ); + strcat( txt, "SNIFFER" ); +#endif + openlog( PACKAGE, LOG_CONS|LOG_PID, LOG_LOCAL5 ); - Log( LOG_NOTICE, PACKAGE" version "VERSION" started."); + Log( LOG_NOTICE, PACKAGE" version "VERSION"%s started.", txt ); } /* Log_Init */ |