summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h
index 89b9a2d0..65071035 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -238,10 +238,10 @@ extern unsigned int _trace_level;
#if defined(DEBUG_ON)
-extern std::string _log_category;
+extern optional<std::string> _log_category;
inline bool category_matches(const char * cat) {
- return starts_with(_log_category, cat);
+ return _log_category && starts_with(cat, *_log_category);
}
#define SHOW_DEBUG(cat) \