mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Shared log file needs a restart
Tell user about this change.
This commit is contained in:
parent
a8990014e2
commit
47a447bf73
@ -1859,7 +1859,7 @@ static struct cmd_t command_defs[] = {
|
|||||||
{ "where", "Show the current log file location." },
|
{ "where", "Show the current log file location." },
|
||||||
{ "rotate on|off", "Rotate log, default on." },
|
{ "rotate on|off", "Rotate log, default on." },
|
||||||
{ "maxsize <bytes>", "With rotate enabled, specifies the max log size, defaults to 1048580 (1MB)." },
|
{ "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
|
CMD_NOEXAMPLES
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -6375,7 +6375,7 @@ cmd_log(ProfWin* window, const char* const command, gchar** args)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
_cmd_set_boolean_preference(value, command, "Shared log", PREF_LOG_SHARED);
|
_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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user