From 81779ddb0137cda54362aae11cb05ae8e33b8297 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 13 Feb 2016 18:09:17 -0800 Subject: [PATCH] Use lowercase program names for syslog Other programs typically use the same case as their execulables. --- sesman/chansrv/chansrv.c | 2 +- sesman/sesman.c | 2 +- sesman/sig.c | 2 +- xrdp/xrdp.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c index 9752b7f3..b45fde34 100644 --- a/sesman/chansrv/chansrv.c +++ b/sesman/chansrv/chansrv.c @@ -1487,7 +1487,7 @@ main(int argc, char **argv) /* starting logging subsystem */ g_memset(&logconfig, 0, sizeof(struct log_config)); - logconfig.program_name = "XRDP-Chansrv"; + logconfig.program_name = "xrdp-chansrv"; g_snprintf(log_file, 255, "%s/xrdp-chansrv.log", log_path); g_writeln("chansrv::main: using log file [%s]", log_file); diff --git a/sesman/sesman.c b/sesman/sesman.c index 924a7ae8..30fc5f7c 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -268,7 +268,7 @@ main(int argc, char **argv) g_snprintf(cfg_file, 255, "%s/sesman.ini", XRDP_CFG_PATH); /* starting logging subsystem */ - error = log_start(cfg_file, "XRDP-sesman"); + error = log_start(cfg_file, "xrdp-sesman"); if (error != LOG_STARTUP_OK) { diff --git a/sesman/sig.c b/sesman/sig.c index 72892fb2..5a62046a 100644 --- a/sesman/sig.c +++ b/sesman/sig.c @@ -99,7 +99,7 @@ sig_sesman_reload_cfg(int sig) g_snprintf(cfg_file, 255, "%s/sesman.ini", XRDP_CFG_PATH); /* start again logging subsystem */ - error = log_start(cfg_file, "XRDP-sesman"); + error = log_start(cfg_file, "xrdp-sesman"); if (error != LOG_STARTUP_OK) { diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c index 690508cb..c70c37c7 100644 --- a/xrdp/xrdp.c +++ b/xrdp/xrdp.c @@ -437,7 +437,7 @@ main(int argc, char **argv) } /* starting logging subsystem */ - error = log_start(cfg_file, "XRDP"); + error = log_start(cfg_file, "xrdp"); if (error != LOG_STARTUP_OK) {