diff options
author | Remko Tronçon <git@el-tramo.be> | 2013-02-03 18:21:12 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2013-02-05 20:26:22 (GMT) |
commit | b3a803ed132b5f1b7a21130c5466a8deb106d193 (patch) | |
tree | bd50171aa0384f9308efd920b720b83226c6d5f9 /QA/Checker | |
parent | 28c99a37d09a68ef993330b9ece2732ec03eba8f (diff) | |
download | swift-contrib-b3a803ed132b5f1b7a21130c5466a8deb106d193.zip swift-contrib-b3a803ed132b5f1b7a21130c5466a8deb106d193.tar.bz2 |
Make logging thread-safe.
Change-Id: Ifab368474bd9e42e10f2cb0c29ff696c0aeaf3ea
Diffstat (limited to 'QA/Checker')
-rw-r--r-- | QA/Checker/checker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/QA/Checker/checker.cpp b/QA/Checker/checker.cpp index 12237dc..1ec8892 100644 --- a/QA/Checker/checker.cpp +++ b/QA/Checker/checker.cpp @@ -19,6 +19,8 @@ int main(int argc, char* argv[]) { bool verbose = false; bool outputXML = false; + Swift::Log::setLogLevel(Swift::Log::error); + // Parse parameters std::vector<std::string> testsToRun; for (int i = 1; i < argc; ++i) { @@ -30,7 +32,7 @@ int main(int argc, char* argv[]) { outputXML = true; } else if (param == "--debug") { - Swift::logging = true; + Swift::Log::setLogLevel(Swift::Log::debug); } else { testsToRun.push_back(param); |