##// END OF EJS Templates
logging: Use __name__ when requesting a logger
Martin Bornhold -
r504:669c5d55 default
parent child Browse files
Show More
@@ -19,7 +19,7 b''
19 import logging
19 import logging
20 from pyramid.threadlocal import get_current_registry
20 from pyramid.threadlocal import get_current_registry
21
21
22 log = logging.getLogger()
22 log = logging.getLogger(__name__)
23
23
24
24
25 def trigger(event, registry=None):
25 def trigger(event, registry=None):
@@ -22,7 +22,7 b' from rhodecode.translation import lazy_u'
22 from rhodecode.model.db import User, Repository, Session
22 from rhodecode.model.db import User, Repository, Session
23 from rhodecode.events.base import RhodecodeEvent
23 from rhodecode.events.base import RhodecodeEvent
24
24
25 log = logging.getLogger()
25 log = logging.getLogger(__name__)
26
26
27
27
28 class RepoEvent(RhodecodeEvent):
28 class RepoEvent(RhodecodeEvent):
@@ -217,4 +217,4 b' class RepoPushEvent(RepoVCSEvent):'
217 'issues': issues,
217 'issues': issues,
218 'branches': branches,
218 'branches': branches,
219 }
219 }
220 return data No newline at end of file
220 return data
@@ -19,7 +19,7 b''
19
19
20 import logging
20 import logging
21
21
22 log = logging.getLogger()
22 log = logging.getLogger(__name__)
23
23
24
24
25 class IntegrationTypeRegistry(dict):
25 class IntegrationTypeRegistry(dict):
@@ -36,7 +36,7 b' from rhodecode.lib.colander_utils import'
36 from rhodecode.integrations.types.base import IntegrationTypeBase
36 from rhodecode.integrations.types.base import IntegrationTypeBase
37 from rhodecode.integrations.schema import IntegrationSettingsSchemaBase
37 from rhodecode.integrations.schema import IntegrationSettingsSchemaBase
38
38
39 log = logging.getLogger()
39 log = logging.getLogger(__name__)
40
40
41
41
42 class SlackSettingsSchema(IntegrationSettingsSchemaBase):
42 class SlackSettingsSchema(IntegrationSettingsSchemaBase):
@@ -31,7 +31,7 b' from rhodecode.translation import lazy_u'
31 from rhodecode.integrations.types.base import IntegrationTypeBase
31 from rhodecode.integrations.types.base import IntegrationTypeBase
32 from rhodecode.integrations.schema import IntegrationSettingsSchemaBase
32 from rhodecode.integrations.schema import IntegrationSettingsSchemaBase
33
33
34 log = logging.getLogger()
34 log = logging.getLogger(__name__)
35
35
36
36
37 class WebhookSettingsSchema(IntegrationSettingsSchemaBase):
37 class WebhookSettingsSchema(IntegrationSettingsSchemaBase):
General Comments 0
You need to be logged in to leave comments. Login now