diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-28 01:37:19 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-28 01:37:19 -0600 |
commit | d3d13329d98b2b26378813a91ad0d4e49045a426 (patch) | |
tree | 2edbf8eb068d6e037b46a0074f556d6d685413be /src/utils.cc | |
parent | fc62402c60cd3faac37f3cd60ee417d119869929 (diff) | |
download | fork-ledger-d3d13329d98b2b26378813a91ad0d4e49045a426.tar.gz fork-ledger-d3d13329d98b2b26378813a91ad0d4e49045a426.tar.bz2 fork-ledger-d3d13329d98b2b26378813a91ad0d4e49045a426.zip |
Made the --debug option's argument a regex
Diffstat (limited to 'src/utils.cc')
-rw-r--r-- | src/utils.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/utils.cc b/src/utils.cc index 2f64bb0a..5260fd42 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -603,7 +603,12 @@ void logger_func(log_level_t level) namespace ledger { -optional<std::string> _log_category; +optional<std::string> _log_category; +#if defined(HAVE_BOOST_REGEX_UNICODE) +optional<boost::u32regex> _log_category_re; +#else +optional<boost::regex> _log_category_re; +#endif struct __maybe_enable_debugging { __maybe_enable_debugging() { |