forked from websauna/websauna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
development.ini
106 lines (83 loc) · 2.35 KB
/
development.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Base configuration file for all local development instances
[includes]
include_ini_files =
resource://websauna/base.ini
[app:main]
pyramid.reload_templates = true
pyramid.debug_authorization = true
pyramid.debug_notfound = true
pyramid.debug_routematch = true
pyramid.default_locale_name = en
pyramid.includes =
pyramid_debugtoolbar
sqlalchemy.url = postgresql://localhost/websauna_dev
# We log all emails to console anyway
mail.default_sender = [email protected]
websauna.mailer = websauna.system.mail.mailer.StdoutMailer
websauna.cachebust = false
websauna.error_test_trigger = true
websauna.admin_as_superuser = true
websauna.sample_html_email = true
websauna.template_debugger = pdb.set_trace
# No websockets proxies for localhost
pyramid_notebook.websocket_proxy =
pyramid_notebook.alternative_domain =
# Where do we read secret variables
websauna.secrets_file = resource://websauna/secrets.ini
# We are not in a hurry to autoclose the session on a development machine. Keep it alive one year.
redis.sessions.timeout = 31536000
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
###
[loggers]
keys = root, sqlalchemy, chameleon, transaction, pyramid_debug, notebook, colander
[handlers]
keys = console
[formatters]
keys = generic, console
[logger_root]
level = DEBUG
handlers = console
[logger_websauna]
level = DEBUG
handlers =
qualname = websauna
# Output from transaction manager commits
[logger_transaction]
level = WARN
handlers =
qualname = txn
# Output from Deform template cooking
[logger_chameleon]
level = WARN
qualname = chameleon.template
handlers =
# Pyramid router debug info
[logger_pyramid_debug]
level = INFO
qualname = pyramid_debug
handlers =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" Show SQL queries in the console
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[handler_console]
class = rainbow_logging_handler.RainbowLoggingHandler
args = (sys.stderr,)
level = DEBUG
formatter = console
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
[formatter_console]
format = [%(asctime)s] [%(name)s %(funcName)s] %(message)s