debug fix
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
from src import config
|
||||
from icecream import ic
|
||||
from src.utils import Log
|
||||
from src import __version__, config
|
||||
|
||||
|
||||
log = Log("debugMessage")
|
||||
|
||||
|
||||
def debugMessage(*args, **kwargs):
|
||||
startmessage = "Logging debug message"
|
||||
# join args and kwargs to a string
|
||||
@@ -15,10 +12,7 @@ def debugMessage(*args, **kwargs):
|
||||
if config.debug:
|
||||
if config.log_debug:
|
||||
log.info(f"{startmessage}: {message}")
|
||||
|
||||
if config.ic_logging == True:
|
||||
ic(message)
|
||||
else: print(message)
|
||||
return message
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
debugMessage("This is a debug message ", test="test", url="https://www.google.com")
|
||||
|
||||
Reference in New Issue
Block a user