From f632a9e9989fa933c4410ac34e8d00a96322c9fd Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 19 Jan 2020 14:42:12 +0100 Subject: [PATCH] Add env-dispatch flog category --- src/env_dispatch.cpp | 2 +- src/flog.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/env_dispatch.cpp b/src/env_dispatch.cpp index 25927e2c5..6b43dd2d8 100644 --- a/src/env_dispatch.cpp +++ b/src/env_dispatch.cpp @@ -135,7 +135,7 @@ void env_dispatch_init(const environment_t &vars) { /// Properly sets all timezone information. static void handle_timezone(const wchar_t *env_var_name, const environment_t &vars) { const auto var = vars.get(env_var_name, ENV_DEFAULT); - debug(2, L"handle_timezone() current timezone var: |%ls| => |%ls|", env_var_name, + FLOGF(env_dispatch, L"handle_timezone() current timezone var: |%ls| => |%ls|", env_var_name, !var ? L"MISSING" : var->as_string().c_str()); const std::string &name = wcs2string(env_var_name); if (var.missing_or_empty()) { diff --git a/src/flog.h b/src/flog.h index aa2574e37..7fa7421c9 100644 --- a/src/flog.h +++ b/src/flog.h @@ -80,6 +80,8 @@ class category_list_t { category_t env_export{L"env-export", L"Changes to exported variables"}; + category_t env_dispatch{L"env-dispatch", L"Reacting to variables"}; + category_t uvar_file{L"uvar-file", L"Writing/reading the universal variable store"}; category_t topic_monitor{L"topic-monitor", L"Internal details of the topic monitor"};