From 05c1ea04635b143249f3d4065d479642933a38f6 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sat, 20 Oct 2012 15:34:35 +0200 Subject: Added comments. --- source/log.py | 16 +++++++++++++++- source/pyAggr3g470r.py | 12 ++++++------ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/source/log.py b/source/log.py index a590c6ce..fdcc3491 100755 --- a/source/log.py +++ b/source/log.py @@ -28,9 +28,11 @@ __license__ = "GPLv3" class Log(object): """ + Log events. Especially events relative to authentication. """ def __init__(self): """ + Initialization of the logger. """ import logging self.logger = logging.getLogger("pyaggr3g470r") @@ -41,13 +43,25 @@ class Log(object): self.logger.setLevel(logging.INFO) def info(self, message): + """ + Log notices. + """ self.logger.info(message) def warning(self, message): + """ + Log warnings. + """ self.logger.warning(message) def error(self, message): + """ + Log errors. + """ self.logger.warning(message) def critical(self, message): - self.logger.critical(message) \ No newline at end of file + """ + Log critical errors. + """ + self.logger.critical(message) diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index b93d873b..f0443384 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -101,11 +101,11 @@ htmlnav = '\n