diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-03-03 00:27:15 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-03-03 00:27:15 +0100 |
commit | 53b209655572aec79b42520ce5a5c3e429fff94c (patch) | |
tree | 553c5f9d19b0b6439ef951e2c349cf339cc63b60 /src/vty | |
parent | 7c3b8fb441943a47a4fb57ee67251c24c84e41ee (diff) | |
parent | de79cee5a60e91b7fdc266f59dc8e43acd366ce6 (diff) |
Merge branch 'master' of git.osmocom.org:libosmocore
Diffstat (limited to 'src/vty')
-rw-r--r-- | src/vty/logging_vty.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c index 4c46c68e..904f8fec 100644 --- a/src/vty/logging_vty.c +++ b/src/vty/logging_vty.c @@ -365,6 +365,9 @@ static const int local_sysl_map[] = { [7] = LOG_LOCAL7 }; +/* From VTY core code */ +extern struct host host; + static int _cfg_log_syslog(struct vty *vty, int facility) { struct log_target *tgt; @@ -374,7 +377,7 @@ static int _cfg_log_syslog(struct vty *vty, int facility) if (tgt) log_target_destroy(tgt); - tgt = log_target_create_syslog("FIXME", 0, facility); + tgt = log_target_create_syslog(host.app_info->name, 0, facility); if (!tgt) { vty_out(vty, "%% Unable to open syslog%s", VTY_NEWLINE); return CMD_WARNING; |