Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespaced loggers #133

Merged
merged 1 commit into from Aug 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion silk/collector.py
Expand Up @@ -18,7 +18,7 @@
TYP_PROFILES = 'profiles'
TYP_QUERIES = 'queries'

Logger = logging.getLogger('silk')
Logger = logging.getLogger('silk.collector')


def raise_middleware_error():
Expand Down
2 changes: 1 addition & 1 deletion silk/middleware.py
Expand Up @@ -15,7 +15,7 @@
from silk.profiling.profiler import silk_meta_profiler
from silk.sql import execute_sql

Logger = logging.getLogger('silk')
Logger = logging.getLogger('silk.middleware')


def silky_reverse(name, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion silk/model_factory.py
Expand Up @@ -11,7 +11,7 @@
from silk.collector import DataCollector
from silk.config import SilkyConfig

Logger = logging.getLogger('silk')
Logger = logging.getLogger('silk.model_factory')

content_types_json = ['application/json',
'application/x-javascript',
Expand Down
2 changes: 1 addition & 1 deletion silk/profiling/dynamic.py
Expand Up @@ -8,7 +8,7 @@

from silk.profiling.profiler import silk_profile

Logger = logging.getLogger('silk')
Logger = logging.getLogger('silk.profiling.dynamic')


def _get_module(module_name):
Expand Down
2 changes: 1 addition & 1 deletion silk/profiling/profiler.py
Expand Up @@ -12,7 +12,7 @@
from silk.config import SilkyConfig
from silk.models import _time_taken

Logger = logging.getLogger('silk')
Logger = logging.getLogger('silk.profiling.profiler')


# noinspection PyPep8Naming
Expand Down
2 changes: 1 addition & 1 deletion silk/request_filters.py
Expand Up @@ -9,7 +9,7 @@
from silk.profiling.dynamic import _get_module

from silk.templatetags.silk_filters import _silk_date_time
logger = logging.getLogger('silk')
logger = logging.getLogger('silk.request_filters')


class FilterValidationError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion silk/sql.py
Expand Up @@ -7,7 +7,7 @@
from silk.collector import DataCollector
from silk.config import SilkyConfig

Logger = logging.getLogger('silk')
Logger = logging.getLogger('silk.sql')


def _should_wrap(sql_query):
Expand Down
2 changes: 1 addition & 1 deletion silk/views/raw.py
Expand Up @@ -5,7 +5,7 @@
from silk.auth import login_possibly_required, permissions_possibly_required
from silk.models import Request
import logging
Logger = logging.getLogger('silk')
Logger = logging.getLogger('silk.views.raw')


class Raw(View):
Expand Down