From 095d40d3bd70c4058ad13c0e7956b90a14c5b3f7 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Fri, 19 Aug 2022 10:24:26 +0200 Subject: tell the user to which file we're logging Signed-off-by: Steffen Jaeckel --- src/profanity.c | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit 1.4.1-2-gfad0 bmit' value='switch'/> mirror of ranger - a simple, vim-like file managerakspecs <akspecs@tilde.institute>
about summary refs log blame commit diff stats
blob: 493e6d3a59a62a656446c2e4b91aade2d63ea8dd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15