then it says -
On Thursday, July 26, 2018 at 7:06:10 PM UTC+5:30, Jason wrote:
-- File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "E:\cms-app\ps-cms\ps_cms\settings.py", line 256, in <module> 'django.server': DEFAULT_LOGGING['loggers']['django.server'],TypeError: 'module' object is not callable
On Thursday, July 26, 2018 at 7:06:10 PM UTC+5:30, Jason wrote:
no, I mean like this:LOGGING = {'version': 1,'disable_existing_loggers': False,'formatters': {'default': {# exact format is not important, this is the minimum information'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s',},'django.server': DEFAULT_LOGGING['formatters']['django.server'], },'handlers': {# console logs to stderr'console': {'class': 'logging.StreamHandler','formatter': 'default',},# Add Handler for Sentry for `warning` and above'sentry': {'level': 'WARNING','class': 'raven.contrib.django.raven_compat.handlers.SentryHandler' , },'django.server': DEFAULT_LOGGING['handlers']['django.server'], },'loggers': {# default for all undefined Python modules'': {'level': 'WARNING','handlers': ['console', 'sentry'],},# Our application code'app': {'level': LOGLEVEL,'handlers': ['console', 'sentry'],# Avoid double logging because of root logger'propagate': False,},# Prevent noisy modules from logging to Sentry'noisy_module': {'level': 'ERROR','handlers': ['console'],'propagate': False,},# Default runserver request logging'django.server': DEFAULT_LOGGING['loggers']['django.server'], },}
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8c7a601f-903e-43b9-b69b-207702983fb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment