diff --git a/server/modules/protocol/httpd.c b/server/modules/protocol/httpd.c index f5e347924..4b4588b16 100644 --- a/server/modules/protocol/httpd.c +++ b/server/modules/protocol/httpd.c @@ -49,6 +49,8 @@ MODULE_INFO info = { "An experimental HTTPD implementation for use in admnistration" }; +extern int lm_enabled_logfiles_bitmask; + #define ISspace(x) isspace((int)(x)) #define HTTP_SERVER_STRING "MaxScale(c) v.1.0.0" static char *version_str = "V1.0.1"; @@ -413,9 +415,7 @@ int syseno = 0; rc = listen(listener->fd, SOMAXCONN); if (rc == 0) { - fprintf(stderr, - "Listening http connections at %s\n", - config); + LOGIF(LM, (skygw_log_write_flush(LOGFILE_MESSAGE,"Listening httpd connections at %s", config))); } else { int eno = errno; errno = 0; diff --git a/server/modules/protocol/telnetd.c b/server/modules/protocol/telnetd.c index e8c208c20..f78a8e0d3 100644 --- a/server/modules/protocol/telnetd.c +++ b/server/modules/protocol/telnetd.c @@ -390,9 +390,7 @@ int syseno = 0; rc = listen(listener->fd, SOMAXCONN); if (rc == 0) { - fprintf(stderr, - "Listening telnet connections at %s\n", - config); + LOGIF(LM, (skygw_log_write_flush(LOGFILE_MESSAGE,"Listening telnet connections at %s", config))); } else { int eno = errno; errno = 0;