Skip to content

Commit

Permalink
Merge pull request #810 from xzzy/master
Browse files Browse the repository at this point in the history
Disabled Logging and added Env to enable
  • Loading branch information
xzzy committed Aug 13, 2020
2 parents bc848bf + ffcbe2e commit 05b92d8
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions ledger/settings_base.py
Expand Up @@ -273,15 +273,15 @@
'handlers': ['file'],
'level': 'INFO'
},
'ledger_bpoint': {
'handlers': ['file'],
'level': 'INFO',
},
'oscar.checkout': {
'handlers': ['file'],
'level': 'INFO',

}
# 'ledger_bpoint': {
# 'handlers': ['file'],
# 'level': 'INFO',
# },
# 'oscar.checkout': {
# 'handlers': ['file'],
# 'level': 'INFO',
#
# }

# 'oscar.checkout': {
# 'handlers': ['file'],
Expand All @@ -293,7 +293,10 @@
# }
}
}

PAYMENT_LOGGING=env('PAYMENT_LOGGING','False')
if PAYMENT_LOGGING == 'True':
LOGGING = {'loggers': {'ledger_bpoint': { 'handlers': ['file'],'level': 'INFO', } }}
LOGGING = {'loggers': {'oscar.checkout': { 'handlers': ['file'],'level': 'INFO', } }}
# django-dynamic-fields test generation settings
DDF_FILL_NULLABLE_FIELDS = False

Expand Down

0 comments on commit 05b92d8

Please sign in to comment.