mirror of https://gerrit.osmocom.org/libosmocore
Merge branch 'master' of git.osmocom.org:libosmocore
This commit is contained in:
commit
53b2096555
|
@ -365,6 +365,9 @@ static const int local_sysl_map[] = {
|
||||||
[7] = LOG_LOCAL7
|
[7] = LOG_LOCAL7
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* From VTY core code */
|
||||||
|
extern struct host host;
|
||||||
|
|
||||||
static int _cfg_log_syslog(struct vty *vty, int facility)
|
static int _cfg_log_syslog(struct vty *vty, int facility)
|
||||||
{
|
{
|
||||||
struct log_target *tgt;
|
struct log_target *tgt;
|
||||||
|
@ -374,7 +377,7 @@ static int _cfg_log_syslog(struct vty *vty, int facility)
|
||||||
if (tgt)
|
if (tgt)
|
||||||
log_target_destroy(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) {
|
if (!tgt) {
|
||||||
vty_out(vty, "%% Unable to open syslog%s", VTY_NEWLINE);
|
vty_out(vty, "%% Unable to open syslog%s", VTY_NEWLINE);
|
||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
|
|
Loading…
Reference in New Issue