Skip to content

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Jan 4, 2026

'netlab create --verbose' generated tons of messages that were really debugging messages. Now they're printed only if the corresponding 'debug' flag is active.

Also: fix 'test errors => QUIET => no warnings' problem introduced in f92490e that broke the error tests.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors verbose logging to use debug flags, reducing noise when running netlab create --verbose. It also fixes a test regression where warnings were incorrectly suppressed during error testing.

Key changes:

  • Introduced NO_WARNING flag to separate warning suppression from quiet mode
  • Moved callback module loading messages from verbose to debug('loadable')
  • Removed verbose YAML file reading message that cluttered output

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
netsim/utils/log.py Adds NO_WARNING flag to fix test error handling, updates global variable declarations for better organization
netsim/utils/callback.py Replaces verbose checks with debug_active('loadable'), improves exception handling, removes unused sys import
netsim/utils/read.py Improves exception handling from bare except to Exception as ex, removes verbose logging message
netsim/cli/init.py Adds 'loadable' to debug flag choices to support new debug category
tests/errors/invalid-yaml.log Updates test output to reflect corrected warning behavior in error tests

'netlab create --verbose' generated tons of messages that were really
debugging messages. Now they're printed only if the corresponding
'debug' flag is active.

Also: fix 'test errors => QUIET => no warnings' problem introduced in
f92490e that broke the error tests.
@ipspace ipspace merged commit 928743c into dev Jan 4, 2026
11 checks passed
@ipspace ipspace deleted the clean-verbose branch January 4, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants