Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
use logger in KeyValueComposer()
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed May 20, 2017
1 parent de5e0b0 commit 144ad5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alphatwirl/summary/KeyValueComposer.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def _collect_arrays(self, event, attr_names):
try:
attr = getattr(event, varname)
except AttributeError, e:
logging.warning(e)
logger = logging.getLogger(__name__)
logger.warning(e)
logger.warning(self)
return None
ret.append(attr)
return ret
Expand Down

0 comments on commit 144ad5c

Please sign in to comment.