summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service/service.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/service/service.c b/src/service/service.c
index 5a44114..53abda7 100644
--- a/src/service/service.c
+++ b/src/service/service.c
@@ -262,11 +262,12 @@ void WINAPI wolf_service_main( DWORD argc, LPTSTR *argv ) {
char errbuf[512];
BOOL res;
- /* all other loggers make no sense: a service is not supposed
- * to have a logfile or interaction with the user in any way!
+ /* close all loggers but the logging to the event log. If the service runs
+ * with interactive right, it could open a console on the desktop (maybe this
+ * is something for debugging later?).
*/
- wolf_log_openlogtoeventlog( NULL, "Application", "testservice",
- "C:\\Temp\\testservicemsg.dll", WOLF_LAST_INTERNAL_CATEGORY+1, WOLF_LOG_DEBUG );
+ wolf_log_closelogtofile( );
+ wolf_log_closelogtostderr( );
/* register the event callback where we get called by the service
* manager and the system