1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

Shared log file needs a restart

Tell user about this change.
This commit is contained in:
Michael Vetter 2020-12-11 11:17:44 +01:00
parent a8990014e2
commit 47a447bf73
2 changed files with 2 additions and 2 deletions

View File

@ -1859,7 +1859,7 @@ static struct cmd_t command_defs[] = {
{ "where", "Show the current log file location." },
{ "rotate on|off", "Rotate log, default on." },
{ "maxsize <bytes>", "With rotate enabled, specifies the max log size, defaults to 1048580 (1MB)." },
{ "shared on|off", "Share logs between all instances, default: on. When off, the process id will be included in the log filename." })
{ "shared on|off", "Share logs between all instances, default: on. When off, the process id will be included in the log filename. Does not take effect if you specified a filename yourself when starting Profanity." })
CMD_NOEXAMPLES
},

View File

@ -6375,7 +6375,7 @@ cmd_log(ProfWin* window, const char* const command, gchar** args)
return TRUE;
}
_cmd_set_boolean_preference(value, command, "Shared log", PREF_LOG_SHARED);
log_reinit();
cons_show("Setting only takes effect after saving and restarting Profanity.");
return TRUE;
}