Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 My Django 2.0.6 logging is not working while product merging
#1
Hi Experts,

I am facing a strange issue in my application built on Django 2.0.6+MySql 5.7+Python3.6.

I am trying to merge two products with same name so that I can remove duplicacy.

But when I click on Preview button, page is refreshed and no any trace in logs.

In my settings.py DEBUG is already True and following logger setting I am using-

import logging
# send server errors to admin
ADMINS = (('admin', 'admin@example.com'),)
MANAGERS = ADMINS

# Logging configuration for production
LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'verbose': {
            'format': '%(asctime)s [%(levelname)s] %(filename)s:%(lineno)s %(funcName)s() : %(message)s'
        },
        'simple': {
            'format': '%(asctime)s [%(levelname)s] : %(message)s'
        },
    },
    'handlers': {
        'file': {
            'level': 'ERROR',
            'class': 'logging.FileHandler',
            'filename': 'error.log',
            'formatter': 'verbose'
        },
        'mail_admins': {
            'level': 'ERROR',
            'class': 'django.utils.log.AdminEmailHandler',
            'formatter': 'simple'
        },
    },
    'loggers': {
        'django': {
            'handlers': ['file'],
            'level': 'ERROR',
            'propagate': True,
        },
        'django.request': {
            'handlers': ['mail_admins'],
            'level': 'ERROR',
            'propagate': True,
        },
    },
}
Am I missing anything here because I am not seeing any info,warning or error in logs?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Need help to get product details using BeautifulSoup+Python3.6! PrateekG 2 771 Jun-27-2018, 08:52 AM
Last Post: PrateekG
  django manage.py startserver - not working lewashby 3 12,727 Nov-24-2016, 11:24 PM
Last Post: lewashby

Forum Jump:


Users browsing this thread: 1 Guest(s)