Skip to content

Commit

Permalink
Decrease logging verbosity (#222)
Browse files Browse the repository at this point in the history
Signed-off-by: Wojciech Kula <[email protected]>
  • Loading branch information
wku12 authored Dec 20, 2024
1 parent 6ff5d21 commit b5f612f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/error/error_manager_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ void ErrorManagerImpl::raise_error(const Error& error) {
}
}
if (!can_be_raised(error.type, error.sub_type)) {
EVLOG_warning << "Error can't be raised, because type " << error.type << ", sub_type " << error.sub_type
<< " is already active.";
EVLOG_debug << "Error can't be raised, because type " << error.type << ", sub_type " << error.sub_type
<< " is already active.";
return;
}
database->add_error(std::make_shared<Error>(error));
Expand All @@ -61,7 +61,7 @@ std::list<ErrorPtr> ErrorManagerImpl::clear_error(const ErrorType& type, const b
return clear_error(type, sub_type);
}
if (!can_be_cleared(type)) {
EVLOG_warning << "Errors can't be cleared, because type " << type << " is not active.";
EVLOG_debug << "Errors can't be cleared, because type " << type << " is not active.";
return {};
}
std::list<ErrorFilter> filters = {ErrorFilter(TypeFilter(type))};
Expand All @@ -78,8 +78,8 @@ std::list<ErrorPtr> ErrorManagerImpl::clear_error(const ErrorType& type, const b

std::list<ErrorPtr> ErrorManagerImpl::clear_error(const ErrorType& type, const ErrorSubType& sub_type) {
if (!can_be_cleared(type, sub_type)) {
EVLOG_warning << "Error can't be cleared, because type " << type << ", sub_type " << sub_type
<< " is not active.";
EVLOG_debug << "Error can't be cleared, because type " << type << ", sub_type " << sub_type
<< " is not active.";
return {};
}
std::list<ErrorFilter> filters = {ErrorFilter(TypeFilter(type)), ErrorFilter(SubTypeFilter(sub_type))};
Expand Down

0 comments on commit b5f612f

Please sign in to comment.