##// END OF EJS Templates
Debug off. for production
Marcin Kuzminski -
r85:4bb06ccb default
parent child Browse files
Show More
@@ -1,119 +1,119 b''
1 1 ################################################################################
2 2 ################################################################################
3 3 # pylons_app - Pylons environment configuration #
4 4 # #
5 5 # The %(here)s variable will be replaced with the parent directory of this file#
6 6 ################################################################################
7 7
8 8 [DEFAULT]
9 9 debug = true
10 10 ############################################
11 11 ## Uncomment and replace with the address ##
12 12 ## which should receive any error reports ##
13 13 ############################################
14 14 #email_to = marcin.kuzminski@etelko.pl
15 15 #smtp_server = mail.etelko.pl
16 16 #error_email_from = paste_error@localhost
17 17 #smtp_username =
18 18 #smtp_password =
19 19 #error_message = 'mercurial crash !'
20 20
21 21 [server:main]
22 22 threadpool_workers = 10
23 23 use = egg:Paste#http
24 24 host = 127.0.0.1
25 25 port = 8001
26 26
27 27 [app:main]
28 28 use = egg:pylons_app
29 29 full_stack = true
30 30 static_files = true
31 31 lang=en
32 32 cache_dir = %(here)s/data
33 33 repos_name = Python-works
34 34
35 35 ####################################
36 36 ### BEAKER CACHE ####
37 37 ####################################
38 38 beaker.cache.data_dir=/tmp/cache/data
39 39 beaker.cache.lock_dir=/tmp/cache/lock
40 40 beaker.cache.regions=short_term
41 41 beaker.cache.short_term.type=memory
42 42 beaker.cache.short_term.expire=3600
43 43
44 44 ################################################################################
45 45 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
46 46 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
47 47 ## execute malicious code after an exception is raised. ##
48 48 ################################################################################
49 #set debug = false
49 set debug = false
50 50
51 51 ##################################
52 52 ### LOGVIEW CONFIG ###
53 53 ##################################
54 54 logview.sqlalchemy = #faa
55 55 logview.pylons.templating = #bfb
56 56 logview.pylons.util = #eee
57 57
58 58 #########################################################
59 59 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
60 60 #########################################################
61 61 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
62 62 #sqlalchemy.db1.echo = True
63 63 #sqlalchemy.db1.pool_recycle = 3600
64 64 sqlalchemy.convert_unicode = true
65 65
66 66 ################################
67 67 ### LOGGING CONFIGURATION ####
68 68 ################################
69 69 [loggers]
70 70 keys = root, routes, pylons_app, sqlalchemy
71 71
72 72 [handlers]
73 73 keys = console
74 74
75 75 [formatters]
76 76 keys = generic
77 77
78 78 #############
79 79 ## LOGGERS ##
80 80 #############
81 81 [logger_root]
82 82 level = INFO
83 83 handlers = console
84 84
85 85 [logger_routes]
86 86 level = INFO
87 87 handlers = console
88 88 qualname = routes.middleware
89 89 # "level = DEBUG" logs the route matched and routing variables.
90 90
91 91 [logger_pylons_app]
92 92 level = DEBUG
93 93 handlers = console
94 94 qualname = pylons_app
95 95
96 96
97 97 [logger_sqlalchemy]
98 98 level = DEBUG
99 99 handlers = console
100 100 qualname = sqlalchemy.engine
101 101
102 102 ##############
103 103 ## HANDLERS ##
104 104 ##############
105 105
106 106 [handler_console]
107 107 class = StreamHandler
108 108 args = (sys.stderr,)
109 109 level = NOTSET
110 110 formatter = generic
111 111
112 112 ################
113 113 ## FORMATTERS ##
114 114 ################
115 115
116 116 [formatter_generic]
117 117 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
118 118 datefmt = %Y-%m-%d %H:%M:%S
119 119
General Comments 0
You need to be logged in to leave comments. Login now