Permalink
Browse files

Fixed logging in local_settings and added it to settings also

  • Loading branch information...
1 parent 5a9190c commit ac0faadd5551c1142dec5ad73c6debbf9a027508 @ingenieroariel ingenieroariel committed May 6, 2012
Showing with 31 additions and 1 deletion.
  1. +0 −1 shared/package/support/geonode.local_settings
  2. +31 −0 src/GeoNodePy/geonode/settings.py
@@ -107,7 +107,6 @@ LOGGING = {
"console":{
"level":"DEBUG",
"class":"logging.StreamHandler",
- "formatter": "simple"
},
"mail_admins": {
"level": "ERROR",
@@ -291,6 +291,37 @@ def get_user_url(u):
'avatar': 'geonode.migrations.avatar',
}
+LOGGING = {
+ "version": 1,
+ "disable_existing_loggers": False,
+ "handlers": {
+ "null": {
+ "level":"DEBUG",
+ "class":"django.utils.log.NullHandler",
+ },
+ "console":{
+ "level":"DEBUG",
+ "class":"logging.StreamHandler",
+ },
+ "mail_admins": {
+ "level": "ERROR",
+ "class": "django.utils.log.AdminEmailHandler",
+ },
+ },
+ "loggers": {
+ "django.request": {
+ "handlers": ["mail_admins"],
+ "level": "ERROR",
+ "propagate": True,
+ },
+ "geonode": {
+ "handlers": ["console"],
+ "level": "WARNING",
+ },
+ },
+}
+
+
try:
from local_settings import *
except ImportError:

0 comments on commit ac0faad

Please sign in to comment.