summaryrefslogtreecommitdiffstats
path: root/ipsilon/util/log.py
blob: 3000bb5aa878a22b122fa9cba6d5610229c6bd10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python
#
# Copyright (C) 2014 Ipsilon Project Contributors
#
# See the file named COPYING for the project license

import cherrypy


class Log(object):

    def debug(self, fact):
        if cherrypy.config.get('debug', False):
            cherrypy.log(fact)

    # for compatibility with existing code
    _debug = debug

    def log(self, fact):
        cherrypy.log(fact)