Mercurial > lcfOS
diff python/ppci/errors.py @ 255:7416c923a02a
Added more logging
author | Windel Bouwman |
---|---|
date | Sun, 04 Aug 2013 15:10:10 +0200 |
parents | 6ed3d3a82a63 |
children | 4496cae24d7f |
line wrap: on
line diff
--- a/python/ppci/errors.py Wed Jul 31 21:20:58 2013 +0200 +++ b/python/ppci/errors.py Sun Aug 04 15:10:10 2013 +0200 @@ -3,6 +3,7 @@ Diagnostic utils """ +import logging from . import SourceLocation class CompilerError(Exception): @@ -50,8 +51,10 @@ class DiagnosticsManager: def __init__(self): self.diags = [] + self.logger = logging.getLogger('diagnostics') def addDiag(self, d): + self.logger.info(str(d)) self.diags.append(d) def error(self, msg, loc):