mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-28 18:14:42 +00:00
cleanup
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1320 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
d6b5222925
commit
ce68bb782a
1 changed files with 4 additions and 11 deletions
|
|
@ -50,23 +50,16 @@ def _text (*args, **kwargs):
|
|||
# debug function, using the debug level
|
||||
def debug (level, *args):
|
||||
if level <= _debuglevel:
|
||||
_text(*args)
|
||||
_text("DEBUG", *args)
|
||||
|
||||
|
||||
def info (*args):
|
||||
args = list(args)
|
||||
args.insert(0, "info:")
|
||||
_text(*args, **{'color':'default'})
|
||||
_text("INFO", *args, **{'color':'default'})
|
||||
|
||||
|
||||
def warn (*args):
|
||||
args = list(args)
|
||||
args.insert(0, "warning:")
|
||||
_text(*args, **{'color':'bold;yellow'})
|
||||
_text("WARN", *args, **{'color':'bold;yellow'})
|
||||
|
||||
|
||||
def error (*args):
|
||||
args = list(args)
|
||||
args.insert(0, "error:")
|
||||
_text(*args, **{'color':'bold;red'})
|
||||
|
||||
_text("ERROR", *args, **{'color':'bold;red'})
|
||||
|
|
|
|||
Loading…
Reference in a new issue