mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
11 lines
199 B
Python
11 lines
199 B
Python
|
import logging
|
||
|
import os
|
||
|
|
||
|
logger = logging.getLogger(__name__)
|
||
|
|
||
|
|
||
|
class NullWriter:
|
||
|
def write(self, data):
|
||
|
if os.environ["CRAFTY_LOG_NULLWRITER"] == "true":
|
||
|
logger.debug(data)
|