about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>2022-08-19 10:24:26 +0200
committerSteffen Jaeckel <jaeckel-floss@eyet-services.de>2022-09-07 10:04:00 +0200
commit095d40d3bd70c4058ad13c0e7956b90a14c5b3f7 (patch)
tree9f04abae794fe01de2fb3c6cfa9b8817d19855c0
parent099b443dc88339a0c971d709235980f8bc4f7faf (diff)
downloadprofani-tty-095d40d3bd70c4058ad13c0e7956b90a14c5b3f7.tar.gz
tell the user to which file we're logging
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
-rw-r--r--src/profanity.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 1bf734b8..2480dfef 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -203,6 +203,11 @@ _init(char* log_level, char* config_file, char* log_file, char* theme_name)
     }
 
     ui_init();
+    if (prof_log_level == PROF_LEVEL_DEBUG) {
+        ProfWin* console = wins_get_console();
+        win_println(console, THEME_DEFAULT, "-", "Debug mode enabled! Logging to: ");
+        win_println(console, THEME_DEFAULT, "-", get_log_file_location());
+    }
     session_init();
     cmd_init();
     log_info("Initialising contact list");