mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix null writer
This commit is contained in:
parent
b0e356f999
commit
7885b2c8f7
@ -6,5 +6,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
class NullWriter:
|
||||
def write(self, data):
|
||||
if os.environ["CRAFTY_LOG_NULLWRITER"] == "true":
|
||||
if os.environ.get("CRAFTY_LOG_NULLWRITER", "false") == "true":
|
||||
logger.debug(data)
|
||||
if os.environ.get("CRAFTY_PRINT_NULLWRITER", "false") == "true":
|
||||
print(data)
|
||||
|
Loading…
Reference in New Issue
Block a user