aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-08-29 15:50:12 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-08-29 15:50:12 +0200
commita98c1649cf29e9c4233736472c9d3405a3458115 (patch)
tree69a06e30749d4a1b5555486bde169cc96fcd2216
parent197626868aaf84e9a68e8e7e5397ef1c6883a0f1 (diff)
main: set name even for syslog
Change-Id: I67d74cc2d539651101e82b17d50c8afb8dde621a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0405fd1f..ac21c81f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -650,12 +650,12 @@ int main(int argc, char *argv[])
// ------------- Build session handler & init config -------
config = afb_config_parse_arguments(argc, argv);
-
- afb_debug("main-args");
if (config->name) {
+ verbose_set_name(config->name, 0);
process_name_set_name(config->name);
process_name_replace_cmdline(argv, config->name);
}
+ afb_debug("main-args");
// --------- run -----------
if (config->background) {