------------------------------------------------------------
revno: 62
committer: AurĂ©lien Bompard <[email protected]>
branch nick: mailman-bundler
timestamp: Sun 2015-04-19 03:26:06 +0200
message:
  Add file logging to the devel config
modified:
  mailman_web/development.py
  mailman_web/production.py


--
lp:mailman-bundler
https://code.launchpad.net/~abompard/mailman-bundler/mailman-bundler

Your team Mailman Coders is subscribed to branch lp:mailman-bundler.
To unsubscribe from this branch go to 
https://code.launchpad.net/~abompard/mailman-bundler/mailman-bundler/+edit-subscription
=== modified file 'mailman_web/development.py'
--- mailman_web/development.py	2015-04-15 18:53:07 +0000
+++ mailman_web/development.py	2015-04-19 01:26:06 +0000
@@ -31,7 +31,7 @@
 MAILMAN_API_USER = MAILMAN_USER = 'restadmin'
 MAILMAN_API_PASS = MAILMAN_PASS = 'restpass'
 MAILMAN_ARCHIVER_KEY = 'SecretArchiverAPIKey'
-MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1')
+MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1', '::ffff:127.0.0.1')
 
 # Application definition
 
@@ -312,15 +312,27 @@
             'class': 'logging.StreamHandler',
             'formatter': 'simple'
         },
+        'file':{
+            'level': 'INFO',
+            #'class': 'logging.handlers.RotatingFileHandler',
+            'class': 'logging.handlers.WatchedFileHandler',
+            'filename': os.path.join(VAR_DIR, 'mailman-web', 'hyperkitty.log'),
+            'formatter': 'verbose',
+        },
     },
     'loggers': {
         'django': {
-            'handlers': ['console'],
+            'handlers': ['console', 'file'],
             'level': 'INFO',
             'propagate': True,
         },
         'hyperkitty': {
-            'handlers': ['console'],
+            'handlers': ['console', 'file'],
+            'level': 'INFO',
+            'propagate': True,
+        },
+        'postorius': {
+            'handlers': ['console', 'file'],
             'level': 'INFO',
             'propagate': True,
         },
@@ -334,7 +346,7 @@
         },
     },
     'root': {
-        'handlers': ['console'],
+        'handlers': ['console', 'file'],
         'level': 'INFO',
     },
 }

=== modified file 'mailman_web/production.py'
--- mailman_web/production.py	2015-04-04 18:36:51 +0000
+++ mailman_web/production.py	2015-04-19 01:26:06 +0000
@@ -31,7 +31,7 @@
 MAILMAN_API_USER = MAILMAN_USER = 'restadmin'
 MAILMAN_API_PASS = MAILMAN_PASS = 'restpass'
 MAILMAN_ARCHIVER_KEY = 'SecretArchiverAPIKey'
-MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1')
+MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1', '::ffff:127.0.0.1')
 
 # Application definition
 

_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders

Reply via email to