about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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");