Completed
Push8eaba9...3fc43c
passed — Build
created

info()   A

↳ Parent: Project

Complexity

Conditions 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
1
"""
2
General file system methods.
3
4
.. moduleauthor:: Jaisen Mathai <[email protected]>
5
"""
6
from __future__ import print_function
7
8
from json import dumps
9
10
from elodie import constants
11
12
13
def info(message):
14
    _print(message)
15
16
17
def info_json(payload):
18
    _print(dumps(payload))
19
20
21
def warn(message):
22
    _print(message)
23
24
25
def warn_json(payload):
26
    _print(dumps(payload))
27
28
29
def error(message):
30
    _print(message)
31
32
33
def error_json(payload):
34
    _print(dumps(payload))
35
36
37
def _print(string):
38
    if(constants.debug is True):
39
        print(string)
40