logging: Use __name__ when requesting a logger
This commit is contained in:
parent
bee42a50ed
commit
595e5fe715
5 changed files with 6 additions and 6 deletions
|
|
@ -19,7 +19,7 @@
|
|||
import logging
|
||||
from pyramid.threadlocal import get_current_registry
|
||||
|
||||
log = logging.getLogger()
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def trigger(event, registry=None):
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from rhodecode.translation import lazy_ugettext
|
|||
from rhodecode.model.db import User, Repository, Session
|
||||
from rhodecode.events.base import RhodecodeEvent
|
||||
|
||||
log = logging.getLogger()
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class RepoEvent(RhodecodeEvent):
|
||||
|
|
@ -217,4 +217,4 @@ class RepoPushEvent(RepoVCSEvent):
|
|||
'issues': issues,
|
||||
'branches': branches,
|
||||
}
|
||||
return data
|
||||
return data
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import logging
|
||||
|
||||
log = logging.getLogger()
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class IntegrationTypeRegistry(dict):
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ from rhodecode.lib.colander_utils import strip_whitespace
|
|||
from rhodecode.integrations.types.base import IntegrationTypeBase
|
||||
from rhodecode.integrations.schema import IntegrationSettingsSchemaBase
|
||||
|
||||
log = logging.getLogger()
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SlackSettingsSchema(IntegrationSettingsSchemaBase):
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from rhodecode.translation import lazy_ugettext
|
|||
from rhodecode.integrations.types.base import IntegrationTypeBase
|
||||
from rhodecode.integrations.schema import IntegrationSettingsSchemaBase
|
||||
|
||||
log = logging.getLogger()
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class WebhookSettingsSchema(IntegrationSettingsSchemaBase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue