ordigi/elodie/log.py

40 lines
544 B
Python

"""
General file system methods.
.. moduleauthor:: Jaisen Mathai <jaisen@jmathai.com>
"""
from __future__ import print_function
from json import dumps
from elodie import constants
def info(message):
_print(message)
def info_json(payload):
_print(dumps(payload))
def warn(message):
_print(message)
def warn_json(payload):
_print(dumps(payload))
def error(message):
_print(message)
def error_json(payload):
_print(dumps(payload))
def _print(string):
if(constants.debug is True):
print(string)