Added /log shared setting

Issue #170
This commit is contained in:
James Booth
2014-04-13 21:56:35 +01:00
parent a4a23fdf68
commit c3418a2909
8 changed files with 52 additions and 8 deletions

View File

@@ -2304,6 +2304,18 @@ cmd_log(gchar **args, struct cmd_help_t help)
}
}
if (strcmp(subcmd, "shared") == 0) {
if (value == NULL) {
cons_show("Usage: %s", help.usage);
return TRUE;
} else {
gboolean result = _cmd_set_boolean_preference(value, help,
"Shared log", PREF_LOG_SHARED);
log_reinit();
return result;
}
}
cons_show("Usage: %s", help.usage);
/* TODO: make 'level' subcommand for debug level */