Define logging for tests
This commit is contained in:
parent
c9a9fa11b2
commit
1b30b1a38c
1 changed files with 14 additions and 0 deletions
|
@ -6,3 +6,17 @@ from .base import * # NOQA
|
||||||
PASSWORD_HASHERS = (
|
PASSWORD_HASHERS = (
|
||||||
'django.contrib.auth.hashers.MD5PasswordHasher',
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||||
)
|
)
|
||||||
|
LOGGING['handlers'].update({
|
||||||
|
'console': {
|
||||||
|
'level': 'ERROR',
|
||||||
|
'class': 'logging.StreamHandler',
|
||||||
|
'formatter': 'simple',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
LOGGING['loggers'].update(dict(
|
||||||
|
[(key, {'handlers': ['console'], 'level': 'ERROR', 'propagate': True, })
|
||||||
|
for key in [
|
||||||
|
'dashboard', 'domains', 'fileservertasks', 'gvacommon',
|
||||||
|
'gvawebcore', 'hostingpackages', 'ldaptasks', 'managemails',
|
||||||
|
'mysqltasks', 'osusers', 'pgsqltasks', 'taskresults',
|
||||||
|
'userdbs', 'websites']]))
|
||||||
|
|
Loading…
Reference in a new issue