diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2018-12-05 14:01:20 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-01-17 13:18:47 +0100 |
commit | 57c8c505245c3d0e46f0498344a7e2a1706be5aa (patch) | |
tree | 4f45a967e4c3caa37be9a8f278fdd27831757f13 /sources/ogAdmServer.cpp | |
parent | f09aca620ccb7447f25abd04e05e31f994405005 (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
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r-- | sources/ogAdmServer.cpp | 2 |
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 |