Skip to content

Commit

Permalink
Fix scripts.py and reports.py to reflect removing DEFAULT level
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoalmeidaoliveira committed Jan 28, 2025
1 parent fd407f9 commit 1d9388f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netbox/extras/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Report(BaseScript):

# There is no generic log() equivalent on BaseScript
def log(self, message):
self._log(message, None, level=LogLevelChoices.LOG_DEFAULT)
self._log(message, None, level=LogLevelChoices.LOG_INFO)

def log_success(self, obj=None, message=None):
super().log_success(message, obj)
Expand Down
2 changes: 1 addition & 1 deletion netbox/extras/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def as_form(self, data=None, files=None, initial=None):
# Logging
#

def _log(self, message, obj=None, level=LogLevelChoices.LOG_DEFAULT):
def _log(self, message, obj=None, level=LogLevelChoices.LOG_INFO):
"""
Log a message. Do not call this method directly; use one of the log_* wrappers below.
"""
Expand Down

0 comments on commit 1d9388f

Please sign in to comment.