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

Set debug log level to irrelevant logs #428

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
6 changes: 3 additions & 3 deletions ckanext/knowledgehub/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def get_last_visuals():
try:
toolkit.check_access('user_profile_show', _get_context())
except toolkit.NotAuthorized:
log.error('Not Authorized')
log.debug('Not Authorized')
data_dict_format = {}
return data_dict_format

Expand Down Expand Up @@ -1733,7 +1733,7 @@ def check_if_dataset_is_on_hdx(dataset_name):
return False
return True
except Exception as e:
log.error('Failed to read from HDX. Error: %s', str(e))
log.debug('Failed to read from HDX. Error: %s', str(e))
log.exception(e)
return False

Expand Down Expand Up @@ -1969,7 +1969,7 @@ def log_request():
# IPv6
remote_ip = x_fwd
except Exception as e:
log.error('Failed to get REMOTE IP while examining header: %s',
log.debug('Failed to get REMOTE IP while examining header: %s',
header)
log.exception(e)

Expand Down