Skip to content

Commit 4f49eea

Browse files
committed
Add UE4CLI_QUIET env var for silencing stderr logging
1 parent 9df6d1e commit 4f49eea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ue4cli/Utility.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def printStderr(*args, **kwargs):
2020
"""
2121
Prints to stderr instead of stdout
2222
"""
23-
print(*args, file=sys.stderr, **kwargs)
23+
if os.environ.get('UE4CLI_QUIET', '0') != '1':
24+
print(*args, file=sys.stderr, **kwargs)
2425

2526
@staticmethod
2627
def readFile(filename):

0 commit comments

Comments
 (0)