Skip to content

Commit

Permalink
Fix issue with verbosity level consistency
Browse files Browse the repository at this point in the history
Changed Print.show to be coherent with verbosity level definition.
Print.show showed messages at all levels except quiet when according to
definition it should have printed messages only in verbose mode.
  • Loading branch information
sergioburdisso committed Feb 19, 2020
1 parent 5b1c355 commit b38d8b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyss3/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def info(msg, newln=True, offset=0, decorator=True, force_show=False):
)

@staticmethod
def show(msg='', newln=True, offset=0):
def show(msg='', newln=True, offset=0, force_show=False):
"""
Print a message.
Expand All @@ -349,7 +349,7 @@ def show(msg='', newln=True, offset=0):
:param offset: shift the message to the right (``offset`` characters)
:type offset: int
"""
if not Print.is_quiet():
if Print.is_verbose() or force_show:
print((" " * offset) + str(msg), end='\n' if newln else '')

@staticmethod
Expand Down

0 comments on commit b38d8b0

Please sign in to comment.