Skip to content

Commit

Permalink
Merge pull request #897 from sphuber/fix_896_abstract_node_sub_class_…
Browse files Browse the repository at this point in the history
…logger

Properly namespace the logger for sub classes of AbstractNode
  • Loading branch information
giovannipizzi authored Nov 7, 2017
2 parents 0b6e92e + d98e973 commit 2dad741
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aiida/orm/implementation/general/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ class __metaclass__(ABCMeta):
def __new__(cls, name, bases, attrs):

newcls = ABCMeta.__new__(cls, name, bases, attrs)
newcls._logger = logging.getLogger(
'{:s}.{:s}'.format(attrs['__module__'], name))
newcls._logger = logging.getLogger('aiida.{:s}.{:s}'.format(attrs['__module__'], name))

# Note: the reverse logic (from type_string to name that can
# be passed to the plugin loader) is implemented in
Expand Down

0 comments on commit 2dad741

Please sign in to comment.