Skip to content

Commit fe02011

Browse files
author
Sascha Goldhofer
committed
Change log block to not print if logging is disabled
1 parent 32c97ef commit fe02011

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

common/verbose.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ def warn(*args):
1414
print("FFP -WARNING-\t", *args)
1515

1616
def start_block():
17-
print("")
17+
if settings.get("log") or settings.get("debug"):
18+
print("")
1819

1920
def end_block():
20-
print("")
21+
if settings.get("log") or settings.get("debug"):
22+
print("")

0 commit comments

Comments
 (0)