summaryrefslogtreecommitdiffstats
path: root/logs.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-01-10 21:12:46 +0900
committerFreeArtMan <dos21h@gmail.com>2015-01-10 21:12:46 +0900
commit4e148546810a2902dff9444526e47c9569c79b64 (patch)
tree76b3a6e1005eefc4e7d632d147b4c7a14f5f6e31 /logs.c
parent0de51355ec0acb63fb05cefc3ad147f4e47166ca (diff)
downloadmicrobbs-4e148546810a2902dff9444526e47c9569c79b64.tar.gz
microbbs-4e148546810a2902dff9444526e47c9569c79b64.zip
Removed loging TERM env variable, thx epoch
Diffstat (limited to 'logs.c')
-rw-r--r--logs.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/logs.c b/logs.c
index c4b5948..130547c 100644
--- a/logs.c
+++ b/logs.c
@@ -3,8 +3,6 @@
int bbs_log_main( const char *syslname )
{
int ret=0;
- char *term=NULL;
- pid_t pid;
setlogmask (LOG_UPTO (LOG_NOTICE));
@@ -16,14 +14,7 @@ int bbs_log_main( const char *syslname )
openlog ( syslname, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1 );
}
- //maybe fake visitor
- term = getenv( "TERM" );
- pid = getpid();
- //why it gives warning on %z? that why just typecast and hope
- if ( term != NULL )
- syslog (LOG_NOTICE, "BBS visitor with TERM=%s pid=%d", term, (int)pid);
- else
- syslog( LOG_NOTICE, "BBS visitor pid=%d", (int)pid );
+ syslog( LOG_NOTICE, "BBS visitor" );
closelog ();