Skip to content

Commit

Permalink
Update URL to logging level docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed May 12, 2021
1 parent 082958f commit 1515517
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions dsmr_backend/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,15 @@ def _remove_pid_file(self):
def _check_logger_level(self):
logging_level = logger.getEffectiveLevel()

if logging_level > logging.INFO:
print(
'Current logging level set to "{}". More information can be found here: '
'https://dsmr-reader.readthedocs.io/en/v4/troubleshooting.html#logging'. format(
logging.getLevelName(logging_level)
)
if logging_level <= logging.INFO:
return

print(
'Current logging level set to "{}". More information can be found here: '
'https://dsmr-reader.readthedocs.io/en/latest/how-to/troubleshooting/enabling-debug-logging.html'.format(
logging.getLevelName(logging_level)
)
)


class ReadOnlyAdminModel(admin.ModelAdmin):
Expand Down

0 comments on commit 1515517

Please sign in to comment.