From 3ff2b3efa6a622879976a363a96ba5e5e18e0cdc Mon Sep 17 00:00:00 2001 From: Leif Halldor Asgeirsson <leifur@leifur.ca> Date: Fri, 15 Jul 2016 17:03:56 -0400 Subject: [PATCH] suppress metaclass creation log for base element classes --- goblin/element.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/goblin/element.py b/goblin/element.py index 4d5db7e..10a9cce 100644 --- a/goblin/element.py +++ b/goblin/element.py @@ -25,8 +25,9 @@ class ElementMeta(type): new_namespace[k] = v new_namespace['__mapping__'] = mapper.create_mapping(namespace, props) - logger.warning("Creating new Element class {}: {}".format( - name, new_namespace['__mapping__'])) + if name not in ('Element', 'Vertex', 'Edge', 'VertexProperty'): + logger.warning("Creating new Element class {}: {}".format( + name, new_namespace['__mapping__'])) result = type.__new__(cls, name, bases, new_namespace) return result -- GitLab