about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-12-11 11:17:44 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-12-11 11:17:44 +0100
commit47a447bf73f508d4984dad283f6650aa8cb3f8a5 (patch)
tree4f23fce99f7600369205e8d38792388f98d89452 /src/command
parenta8990014e22f4735890a3473aab87a05245a9822 (diff)
downloadprofani-tty-47a447bf73f508d4984dad283f6650aa8cb3f8a5.tar.gz
Shared log file needs a restart
Tell user about this change.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_defs.c2
-rw-r--r--src/command/cmd_funcs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index e944aa66..03e1d4be 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -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
     },
 
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 74052c9e..9784f388 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -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;
     }