Skip to content

Commit

Permalink
Merge pull request #148 from toddrjen/logfix
Browse files Browse the repository at this point in the history
use nullhandler for logging in brainware
  • Loading branch information
toddrjen committed Apr 2, 2014
2 parents cae7924 + 1ee02a9 commit 0027003
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions neo/io/brainwaresrcio.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,8 @@ def __init__(self, filename=None):
BaseIO.__init__(self)

# this is the logger used by the IO class
self._logger = logging.getLogger(__name__)

# this is the handler for the IO class. It is global for all
# instances of the IO class.
self._loghandler = LOGHANDLER

# setup the logger
fmt = logging.Formatter('%(levelname)s - %(asctime)s - %(name)s - ' +
str(filename) +
' - %(message)s')
self._loghandler.setFormatter(fmt)
self._logger.addHandler(self._loghandler)
self._logger = logging.getLogger(__name__ + '.' + type(self).__name__)
self._logger.addHandler(logging.NullHandler())

# log the __init__
self._logger.info('__init__')
Expand Down

0 comments on commit 0027003

Please sign in to comment.