Skip to content
Snippets Groups Projects
Commit e648bc85 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[test.main] allow to toggle logging and timedlogging independently

parent 2d455b22
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,9 @@
#ifndef DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING
#define DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING 0
#endif
#ifndef DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING
#define DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING 0
#endif
#include <string>
#include <vector>
......@@ -96,12 +99,12 @@ int main(int argc, char** argv)
"");
DSC::TimedLogger().create(
#if DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING
#if DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING && DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING
std::numeric_limits<ssize_t>::max(),
#else
-1,
#endif
#if DUNE_STUFF_TEST_MAIN_ENABLE_DEBUG_LOGGING
#if DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING && DUNE_STUFF_TEST_MAIN_ENABLE_DEBUG_LOGGING
std::numeric_limits<ssize_t>::max()
#else
-1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment