def compat_patch_logging_config(logging_config):
 if ('filters' not in logging_config.get('handlers', {}).get('mail_admins', {'filters': []})):
  warnings.warn("You have no filters defined on the 'mail_admins' logging handler: adding implicit debug-false-only filter. See http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged", PendingDeprecationWarning)
  filter_name = 'require_debug_false'
  filters = logging_config.setdefault('filters', {})
  while (filter_name in filters):
   filter_name = (filter_name + '_')
  filters[filter_name] = {'()': 'django.utils.log.RequireDebugFalse'}
  logging_config['handlers']['mail_admins']['filters'] = [filter_name]

def compat_patch_logging_config ( logging_config ) : if ( 'filters' not in logging_config . get ( 'handlers' , { } ) . get ( 'mail_admins' , { 'filters' : [ ] } ) ) : warnings . warn ( "You have no filters defined on the 'mail_admins' logging handler: adding implicit debug-false-only filter. See http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged" , PendingDeprecationWarning ) filter_name = 'require_debug_false' filters = logging_config . setdefault ( 'filters' , { } ) while ( filter_name in filters ) : filter_name = ( filter_name + '_' ) filters [ filter_name ] = { '()' : 'django.utils.log.RequireDebugFalse' } logging_config [ 'handlers' ] [ 'mail_admins' ] [ 'filters' ] = [ filter_name ]
backwards-compatibility shim for #16288 fix .