Skip to content

Commit

Permalink
Fix default console log level so that status() prints INFO-level mess…
Browse files Browse the repository at this point in the history
…ages.

The default log level was switched to WARNING but prevents status() from printing messages as expected.
Modify the log level of 'Saving <role>.json' message so that it doesn't clog status().
Thank you @hrdarji for testing the documentation and reporting the non-printing behavior of status().
  • Loading branch information
vladimir-v-diaz committed Aug 19, 2014
1 parent 1a8080e commit 68b3344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tuf/repository_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,7 @@ def write_metadata_file(metadata, filename, compressions, consistent_snapshot):
# and indentation is used. The 'tuf.util.TempFile' file-like object is
# automically closed after the final move.
file_object.write(file_content)
logger.info('Saving ' + repr(written_filename))
logger.debug('Saving ' + repr(written_filename))
file_object.move(written_filename)

for consistent_filename in consistent_filenames:
Expand Down
2 changes: 1 addition & 1 deletion tuf/repository_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
# Add a console handler so that users are aware of potentially unintended
# states, such as multiple roles that share keys.
tuf.log.add_console_handler()
tuf.log.set_console_log_level(logging.WARNING)
tuf.log.set_console_log_level(logging.INFO)

# The algorithm used by the repository to generate the digests of the
# target filepaths, which are included in metadata files and may be prepended
Expand Down

0 comments on commit 68b3344

Please sign in to comment.