From e70b80d6fe1ed6da6812eb3f4c77570a18eb2bf3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 1 May 2007 04:36:56 +0000 Subject: Got tracing code working again. --- src/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.h') 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 _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) \ -- cgit v1.2.3