obuspa: fix syslog format

This commit is contained in:
Vivek Kumar Dutta 2025-04-30 19:11:56 +05:30 committed by Vivek Dutta
parent ca962744b8
commit d3ae8b5020
2 changed files with 13 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=10.0.0.1
PKG_VERSION:=10.0.0.2
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -0,0 +1,12 @@
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;
}