summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-04-21 23:03:58 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-04-21 23:03:58 +0200
commitbd8a5a505edc07e207efb418542b384eddfa4504 (patch)
tree08e4355419c584ddeb781a6066c60266b7c0f94d /src
parente847084b002b08f26533b13e0511eeaec36bdae8 (diff)
downloadbiboumi-bd8a5a505edc07e207efb418542b384eddfa4504.tar.gz
biboumi-bd8a5a505edc07e207efb418542b384eddfa4504.tar.bz2
biboumi-bd8a5a505edc07e207efb418542b384eddfa4504.tar.xz
biboumi-bd8a5a505edc07e207efb418542b384eddfa4504.zip
The logging test is less ambiguous
Diffstat (limited to 'src')
-rw-r--r--src/test.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test.cpp b/src/test.cpp
index 9cffc6d..0a1af49 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -203,13 +203,14 @@ int main()
}
assert(error == false);
- Config::set("log_level", "3");
+ Config::set("log_level", "2");
Config::set("log_file", "");
- log_debug("coucou");
- log_info("coucou");
- log_warning("coucou");
- log_error("coucou");
+ std::cout << color << "Testing logging…" << reset << std::endl;
+ log_debug("If you see this, the test FAILED.");
+ log_info("If you see this, the test FAILED.");
+ log_warning("You wust see this message. And the next one too.");
+ log_error("It’s not an error, don’t worry, the test passed.");
return 0;
}