Skip to content

Commit

Permalink
Fix typo in Backend interface (setVerbosisty) (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn authored Sep 16, 2021
1 parent f82883a commit 0e7ff6a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ endif()

# Define project
project(Monitoring
VERSION 3.8.8
VERSION 3.8.9
DESCRIPTION "O2 Monitoring library"
LANGUAGES CXX
)
Expand Down
6 changes: 5 additions & 1 deletion include/Monitoring/Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ class Backend
/// Default destructor
virtual ~Backend() = default;

/// Set verbosity level
/// Set verbosity level (deprecated)
[[deprecated("Use setVerbosity() instead")]]
void setVerbosisty(Verbosity level) { verbosityLevel = level; }

/// Set verbosity level
void setVerbosity(Verbosity level) { verbosityLevel = level; }

/// Get verbosity level
Verbosity getVerbosity() { return verbosityLevel; }

Expand Down
2 changes: 1 addition & 1 deletion src/Backends/StdOut.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ inline unsigned long StdOut::convertTimestamp(const std::chrono::time_point<std:

StdOut::StdOut(const std::string& prefix) : mPrefix(prefix)
{
setVerbosisty(Verbosity::Debug);
setVerbosity(Verbosity::Debug);
MonLogger::Get(Severity::Info) << "StdOut backend initialized" << MonLogger::End();
}

Expand Down
2 changes: 1 addition & 1 deletion src/MonitoringFactory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void MonitoringFactory::SetVerbosity(std::string selected, std::unique_ptr<Backe
if (found == verbosities.end()) {
return;
}
backend->setVerbosisty(found->second);
backend->setVerbosity(found->second);
MonLogger::Get() << "...verbosity set to "
<< static_cast<std::underlying_type<Verbosity>::type>(found->second)
<< MonLogger::End();
Expand Down

0 comments on commit 0e7ff6a

Please sign in to comment.