Permissions-related updates and fixes, more tests, better handling of any user input that would previously generate a server error.

This commit is contained in:
Chris Church
2013-07-22 21:20:28 -04:00
parent 5ef8a48600
commit bc49627203
15 changed files with 558 additions and 326 deletions

View File

@@ -278,6 +278,9 @@ LOGGING = {
'require_debug_true': {
'()': 'awx.main.compat.RequireDebugTrue',
},
'require_debug_true_or_test': {
'()': 'awx.main.utils.RequireDebugTrueOrTest',
},
},
'formatters': {
'simple': {
@@ -287,7 +290,7 @@ LOGGING = {
'handlers': {
'console': {
'level': 'DEBUG',
'filters': ['require_debug_true'],
'filters': ['require_debug_true_or_test'],
'class': 'logging.StreamHandler',
'formatter': 'simple',
},
@@ -328,12 +331,10 @@ LOGGING = {
},
'awx.main.permissions': {
'handlers': ['null'],
# Comment the line below to show lots of permissions logging.
'propagate': False,
},
'awx.main.access': {
'handlers': ['null'],
# Comment the line below to show lots of permissions logging.
'propagate': False,
},
}

View File

@@ -106,6 +106,11 @@ LOGGING['handlers']['syslog'] = {
# 'formatter': 'simple',
#}
# Enable the following lines to turn on lots of permissions-related logging.
#LOGGING['loggers']['awx.main.access']['propagate'] = True
#LOGGING['loggers']['awx.main.permissions']['propagate'] = True
# Define additional environment variables to be passed to subprocess started by
# the celery task.
#AWX_TASK_ENV['FOO'] = 'BAR'