summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2018-12-05 14:01:20 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-01-17 13:18:47 +0100
commit57c8c505245c3d0e46f0498344a7e2a1706be5aa (patch)
tree4f45a967e4c3caa37be9a8f278fdd27831757f13
parentf09aca620ccb7447f25abd04e05e31f994405005 (diff)
#883 do not use argv[0] in syslog log message
Before: Dec 3 11:18:12 ogLab /opt/opengnsys/sbin/ogAdmServer[1025]: server closing connection to 192.168.56.10:50476 After this patch: Dec 3 11:18:12 ogLab ogAdmServer[1025]: server closing connection to 192.168.56.10:50476
-rw-r--r--sources/ogAdmServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 1ed213d..53a35d7 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.cpp
@@ -3727,7 +3727,7 @@ int main(int argc, char *argv[])
int activo=1;
int i;
- openlog(argv[0], LOG_PID, LOG_DAEMON);
+ openlog("ogAdmServer", LOG_PID, LOG_DAEMON);
/*--------------------------------------------------------------------------------------------------------
Validación de parámetros de ejecución y lectura del fichero de configuración del servicio