Skip to content
Snippets Groups Projects
Commit 08ffd4dd authored by rswindell's avatar rswindell
Browse files

Follow configured LogMask (from sbbs.ini) filtering of log lines.

parent 09c3fbf0
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,9 @@ static int log_puts(int level, char *str)
static pthread_mutex_t mutex;
static BOOL mutex_initialized;
if(!(bbs_startup.log_mask&(1<<level)))
return(0);
#ifdef __unix__
if (is_daemon) {
......@@ -463,6 +466,9 @@ static int ftp_lputs(void* p, int level, char *str)
time_t t;
struct tm tm;
if(!(ftp_startup.log_mask&(1<<level)))
return(0);
#ifdef __unix__
if (is_daemon) {
if(str==NULL)
......@@ -520,6 +526,9 @@ static int mail_lputs(void* p, int level, char *str)
time_t t;
struct tm tm;
if(!(mail_startup.log_mask&(1<<level)))
return(0);
#ifdef __unix__
if (is_daemon) {
if(str==NULL)
......@@ -573,6 +582,9 @@ static int services_lputs(void* p, int level, char *str)
time_t t;
struct tm tm;
if(!(services_startup.log_mask&(1<<level)))
return(0);
#ifdef __unix__
if (is_daemon) {
if(str==NULL)
......@@ -626,6 +638,9 @@ static int event_lputs(int level, char *str)
time_t t;
struct tm tm;
if(!(bbs_startup.log_mask&(1<<level)))
return(0);
#ifdef __unix__
if (is_daemon) {
if(str==NULL)
......@@ -663,6 +678,9 @@ static int web_lputs(void* p, int level, char *str)
time_t t;
struct tm tm;
if(!(web_startup.log_mask&(1<<level)))
return(0);
#ifdef __unix__
if (is_daemon) {
if(str==NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment