Changeset 93c19e4 in OpenWorkouts-current


Ignore:
Timestamp:
Feb 19, 2019, 8:20:50 AM (4 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
3e6467c
Parents:
b8fb06f
Message:

Added the pyramid_mailer settings to staging.ini and production.ini
Added the mail queue processor log settings to staging.ini and production.ini

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • production.ini

    rb8fb06f r93c19e4  
    2121auth.secret = SET_THIS_BEFORE_RUNNING_THE_APP
    2222
     23# pyramid_mailer configuration
     24mail.default_sender = noreply@openworkouts.org
     25mail.queue_path = %(here)s/var/spool/mqueue
     26mail.queue_processor_lock = %(here)s/var/run/mail-queue-processor.lock
     27mail.host = HOST
     28mail.tls = True
     29mail.username = USERNAME
     30mail.password = PASSWORD
     31
    2332
    2433###
     
    3645
    3746[loggers]
    38 keys = root, ow
     47keys = root, ow, QueueProcessor
    3948
    4049[handlers]
    41 keys = filelog, console
     50keys = filelog, console, queueprocessor
    4251
    4352[formatters]
     
    5362qualname = ow
    5463
     64[logger_QueueProcessor]
     65level = WARN
     66handlers = queueprocessor
     67qualname = QueueProcessor
     68propagate = 0
     69
    5570[handler_console]
    5671class = StreamHandler
     
    6580formatter = generic
    6681
     82[handler_queueprocessor]
     83class = FileHandler
     84args = ('%(here)s/var/log/queueprocessor.log','a')
     85level = DEBUG
     86formatter = generic
     87
    6788[formatter_generic]
    6889format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
  • staging.ini

    rb8fb06f r93c19e4  
    2121auth.secret = wI[/t0Pr9qQsRX?yYInT=+b_:<iySt|b/7?yjRHR5F`[E/MbsUZGtmPw&FZlIu0B
    2222
     23# pyramid_mailer configuration
     24mail.default_sender = noreply@openworkouts.org
     25mail.queue_path = %(here)s/var/spool/mqueue
     26mail.queue_processor_lock = %(here)s/var/run/mail-queue-processor.lock
     27mail.host = HOST
     28mail.tls = True
     29mail.username = USERNAME
     30mail.password = PASSWORD
     31
    2332
    2433###
     
    3645
    3746[loggers]
    38 keys = root, ow
     47keys = root, ow, QueueProcessor
    3948
    4049[handlers]
    41 keys = filelog, console
     50keys = filelog, console, queueprocessor
    4251
    4352[formatters]
     
    5362qualname = ow
    5463
     64[logger_QueueProcessor]
     65level = WARN
     66handlers = queueprocessor
     67qualname = QueueProcessor
     68propagate = 0
     69
    5570[handler_console]
    5671class = StreamHandler
     
    6580formatter = generic
    6681
     82[handler_queueprocessor]
     83class = FileHandler
     84args = ('%(here)s/var/log/queueprocessor.log','a')
     85level = DEBUG
     86formatter = generic
     87
    6788[formatter_generic]
    6889format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Note: See TracChangeset for help on using the changeset viewer.