diff options
| author | Alan Conway <aconway@apache.org> | 2007-11-16 22:08:52 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-11-16 22:08:52 +0000 |
| commit | 2c3e3bf4c62267ac6a0fe1f5d6a6288a927ace0b (patch) | |
| tree | ad6ca0683acc9e776f6f9e6dd52c895c024635ca /cpp/src/qpid/log/Selector.cpp | |
| parent | 493b528a6ba5961613d4ecea7b81f5b3638dc3d9 (diff) | |
| download | qpid-python-2c3e3bf4c62267ac6a0fe1f5d6a6288a927ace0b.tar.gz | |
Logging change: --log-enable level:pattern now does a
substring match of pattern on the function name,
instead of the file name. Allows more precise log filtering.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@595842 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/log/Selector.cpp')
| -rw-r--r-- | cpp/src/qpid/log/Selector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/log/Selector.cpp b/cpp/src/qpid/log/Selector.cpp index e8cef2b17d..994421d0ff 100644 --- a/cpp/src/qpid/log/Selector.cpp +++ b/cpp/src/qpid/log/Selector.cpp @@ -52,12 +52,12 @@ Selector::Selector(const Options& opt){ boost::bind(&Selector::enable, this, _1)); } -bool Selector::isEnabled(Level level, const std::string& file) { +bool Selector::isEnabled(Level level, const std::string& function) { for (std::vector<std::string>::iterator i=substrings[level].begin(); i != substrings[level].end(); ++i) { - if (file.find(*i) != std::string::npos) + if (function.find(*i) != std::string::npos) return true; } return false; |
