mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-05 14:01:39 +00:00
use stdout in print_msg
This commit is contained in:
parent
72b4ac97d0
commit
6824179eea
1 changed files with 5 additions and 3 deletions
|
@ -58,13 +58,15 @@ def set_verbosity(b):
|
|||
|
||||
def print_error(*args):
|
||||
if not is_verbose: return
|
||||
print_msg(*args)
|
||||
args = [str(item) for item in args]
|
||||
sys.stderr.write(" ".join(args) + "\n")
|
||||
sys.stderr.flush()
|
||||
|
||||
def print_msg(*args):
|
||||
# Stringify args
|
||||
args = [str(item) for item in args]
|
||||
sys.stderr.write(" ".join(args) + "\n")
|
||||
sys.stderr.flush()
|
||||
sys.stdout.write(" ".join(args) + "\n")
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
def user_dir():
|
||||
|
|
Loading…
Add table
Reference in a new issue