Skip to content

Success log threshold incorrectly includes Info entries #262

In review

Description

@pheus

Plugin Version

v0.2.0

NetBox Version

v4.7.6

Python Version

3.12

Steps to Reproduce

  1. Upload and activate a Project containing a Script File, for example log_levels.py:
    from netbox_scripts import Script
    
    class LogLevels(Script):
        def run(self, data, commit):
            self.log_debug('A debug line')
            self.log_info('An info line')
            self.log_success('A success line')
            self.log_warning('A warning line')
  2. Run the Script from its Run tab.
  3. On the result page, select Success as the log threshold.

Expected Behavior

The Script log displays Success, Warning and Failure entries while excluding Debug and Info entries, consistent with NetBox's built-in Script result page.

Observed Behavior

The Success threshold still includes Info entries and displays the same log entries as the Info threshold.

The same issue affects runcustomscript --loglevel success, as both execution interfaces use the standard Python logging levels for filtering, where Info and Success share the same severity.

Activity

  1. added theissue type on Nov 30, 2026
  2. added
    status: needs triage
    type: bug
    app: scripts
    severity: low
    status: backlog
    and removed
    status: needs triage
    on Nov 30, 2026
  3. modified the milestones: v0.4.0, v0.3.0 on Nov 30, 2026
  4. self-assigned this
    on Dec 1, 2026
  5. added
    status: accepted
    and removed
    status: backlog
    on Dec 1, 2026
  6. added a commit that references this issue on Dec 2, 2026
    cfc8316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bucket: KTLOapp: scriptsseverity: lowstatus: acceptedtype: bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions