From 26fa774f44cf4efb5f1d11450869009527e2f112 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 19 Jan 2020 14:44:30 +0100 Subject: [PATCH] Add path flog category --- src/flog.h | 1 + src/path.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flog.h b/src/flog.h index 7fa7421c9..ed9988cb8 100644 --- a/src/flog.h +++ b/src/flog.h @@ -98,6 +98,7 @@ class category_list_t { category_t reader{L"reader", L"The interactive reader/input system"}; category_t complete{L"complete", L"The completion system"}; + category_t path{L"path", L"Searching/using paths"}; }; /// The class responsible for logging. diff --git a/src/path.cpp b/src/path.cpp index f4b778249..cc5e87618 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -122,7 +122,7 @@ bool path_get_path(const wcstring &cmd, wcstring *out_path, const environment_t } wcstring_list_t path_get_paths(const wcstring &cmd, const environment_t &vars) { - debug(3, L"path_get_paths('%ls')", cmd.c_str()); + FLOGF(path, L"path_get_paths('%ls')", cmd.c_str()); wcstring_list_t paths; // If the command has a slash, it must be an absolute or relative path and thus we don't bother