iopsys-feed/obuspa/patches/1004-syslog-format.patch
2025-04-30 19:52:40 +05:30

12 lines
375 B
Diff

diff --git a/src/core/usp_log.c b/src/core/usp_log.c
index 2722b8f..95b61b3 100644
--- a/src/core/usp_log.c
+++ b/src/core/usp_log.c
@@ -115,6 +115,7 @@ int USP_LOG_SetFile(const char *file)
if ((file == NULL) || strcmp(file, "syslog")==0)
{
log_fd = NULL;
+ openlog("obuspa", LOG_PID | LOG_NDELAY, LOG_DAEMON);
return USP_ERR_OK;
}