Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors: Decrease logging verbosity #222

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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