Skip to content

Commit 361cfe6

Browse files
authored
Set default backend verbosity to Info (#117)
* Set default backend verbosity to Info * fix test
1 parent e12061a commit 361cfe6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/Monitoring/Backend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Backend
2828

2929
public:
3030
/// Default constructor
31-
Backend() { verbosityLevel = Verbosity::Prod; }
31+
Backend() { verbosityLevel = Verbosity::Info; }
3232

3333
/// Default destructor
3434
virtual ~Backend() = default;

test/testMonitoringFactory.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BOOST_AUTO_TEST_CASE(verbosity)
2222

2323
std::string influxUrl = "influxdb-udp://127.0.0.1:1234";
2424
auto influx = Monitoring::GetBackend(influxUrl);
25-
BOOST_CHECK_EQUAL(static_cast<std::underlying_type<Verbosity>::type>(influx->getVerbosity()), 0);
25+
BOOST_CHECK_EQUAL(static_cast<std::underlying_type<Verbosity>::type>(influx->getVerbosity()), 1);
2626

2727
std::string influxDebugUrl = "influxdb-udp://127.0.0.1:1234/debug";
2828
auto influxDebug = Monitoring::GetBackend(influxDebugUrl);

0 commit comments

Comments
 (0)