diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-20 17:07:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-20 17:08:34 +0200 |
commit | c3c218035a9325d47949bf56d57543b2a243098c (patch) | |
tree | 3891fed4b3cb724b952eb1195b42913afb96a7c0 /src/plugins/logger/logger-buffer.c | |
parent | 7461a5cb870953259f2d9dd5562ec88d707d05df (diff) | |
download | weechat-c3c218035a9325d47949bf56d57543b2a243098c.zip |
logger: add option logger.file.log_conditions (closes #1942)
Diffstat (limited to 'src/plugins/logger/logger-buffer.c')
-rw-r--r-- | src/plugins/logger/logger-buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/logger/logger-buffer.c b/src/plugins/logger/logger-buffer.c index 9c02ded58..67686abb7 100644 --- a/src/plugins/logger/logger-buffer.c +++ b/src/plugins/logger/logger-buffer.c @@ -713,7 +713,10 @@ logger_buffer_start (struct t_gui_buffer *buffer, int write_info_line) log_level = logger_get_level_for_buffer (buffer); log_enabled = weechat_config_boolean (logger_config_file_auto_log) - && (log_level > 0); + && (log_level > 0) + && (logger_check_conditions ( + buffer, + weechat_config_string (logger_config_file_log_conditions))); ptr_logger_buffer = logger_buffer_search_buffer (buffer); |