diff libervia/pages/events/admin/page_meta.py @ 1145:29eb15062416

pages: set __name__ for imported pages
author Goffi <goffi@goffi.org>
date Fri, 25 Jan 2019 08:41:43 +0100
parents 28e3eb3bb217
children 0f37b65fe7c2
line wrap: on
line diff
--- a/libervia/pages/events/admin/page_meta.py	Sat Jan 19 11:44:49 2019 +0100
+++ b/libervia/pages/events/admin/page_meta.py	Fri Jan 25 08:41:43 2019 +0100
@@ -15,7 +15,7 @@
 name = u"event_admin"
 access = C.PAGES_ACCESS_PROFILE
 template = u"event/admin.html"
-log = getLogger(u"pages/" + name)
+log = getLogger(__name__)
 REG_EMAIL_RE = re.compile(C.REG_EMAIL_RE, re.IGNORECASE)