Use lowercase program names for syslog

Other programs typically use the same case as their execulables.
This commit is contained in:
Pavel Roskin 2016-02-13 18:09:17 -08:00
parent 4ebc97ef39
commit 81779ddb01
4 changed files with 4 additions and 4 deletions

View File

@ -1487,7 +1487,7 @@ main(int argc, char **argv)
/* starting logging subsystem */ /* starting logging subsystem */
g_memset(&logconfig, 0, sizeof(struct log_config)); 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_snprintf(log_file, 255, "%s/xrdp-chansrv.log", log_path);
g_writeln("chansrv::main: using log file [%s]", log_file); g_writeln("chansrv::main: using log file [%s]", log_file);

View File

@ -268,7 +268,7 @@ main(int argc, char **argv)
g_snprintf(cfg_file, 255, "%s/sesman.ini", XRDP_CFG_PATH); g_snprintf(cfg_file, 255, "%s/sesman.ini", XRDP_CFG_PATH);
/* starting logging subsystem */ /* starting logging subsystem */
error = log_start(cfg_file, "XRDP-sesman"); error = log_start(cfg_file, "xrdp-sesman");
if (error != LOG_STARTUP_OK) if (error != LOG_STARTUP_OK)
{ {

View File

@ -99,7 +99,7 @@ sig_sesman_reload_cfg(int sig)
g_snprintf(cfg_file, 255, "%s/sesman.ini", XRDP_CFG_PATH); g_snprintf(cfg_file, 255, "%s/sesman.ini", XRDP_CFG_PATH);
/* start again logging subsystem */ /* start again logging subsystem */
error = log_start(cfg_file, "XRDP-sesman"); error = log_start(cfg_file, "xrdp-sesman");
if (error != LOG_STARTUP_OK) if (error != LOG_STARTUP_OK)
{ {

View File

@ -437,7 +437,7 @@ main(int argc, char **argv)
} }
/* starting logging subsystem */ /* starting logging subsystem */
error = log_start(cfg_file, "XRDP"); error = log_start(cfg_file, "xrdp");
if (error != LOG_STARTUP_OK) if (error != LOG_STARTUP_OK)
{ {