summaryrefslogtreecommitdiff
path: root/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'logger.c')
-rw-r--r--logger.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/logger.c b/logger.c
index 1218d8d..b8aae3d 100644
--- a/logger.c
+++ b/logger.c
@@ -148,9 +148,10 @@ extern int logger_main(int argc, char **argv)
message[strlen(message)-1] = '\0';
}
- openlog(name, option, (pri | LOG_FACMASK));
+ /*openlog(name, option, (pri | LOG_FACMASK));
syslog(pri, "%s", message);
- closelog();
+ closelog();*/
+ syslog_msg_with_name(name,(pri | LOG_FACMASK),pri,message);
return EXIT_SUCCESS;
}