##// END OF EJS Templates
Whoosh logging is now controlled by the .ini files logging setup
marcink -
r2102:04d26165 beta
parent child Browse files
Show More
@@ -171,6 +171,7 b' beaker.cache.sql_cache_long.key_length ='
171
171
172 beaker.session.type = file
172 beaker.session.type = file
173 beaker.session.key = rhodecode
173 beaker.session.key = rhodecode
174 # secure cookie requires AES python libraries
174 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
175 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
175 #beaker.session.validate_key = 9712sds2212c--zxc123
176 #beaker.session.validate_key = 9712sds2212c--zxc123
176 beaker.session.timeout = 36000
177 beaker.session.timeout = 36000
@@ -213,7 +214,7 b' sqlalchemy.convert_unicode = true'
213 ### LOGGING CONFIGURATION ####
214 ### LOGGING CONFIGURATION ####
214 ################################
215 ################################
215 [loggers]
216 [loggers]
216 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
217 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
217
218
218 [handlers]
219 [handlers]
219 keys = console, console_sql
220 keys = console, console_sql
@@ -259,6 +260,12 b' handlers = console_sql'
259 qualname = sqlalchemy.engine
260 qualname = sqlalchemy.engine
260 propagate = 0
261 propagate = 0
261
262
263 [logger_whoosh_indexer]
264 level = DEBUG
265 handlers =
266 qualname = whoosh_indexer
267 propagate = 1
268
262 ##############
269 ##############
263 ## HANDLERS ##
270 ## HANDLERS ##
264 ##############
271 ##############
@@ -214,7 +214,7 b' sqlalchemy.convert_unicode = true'
214 ### LOGGING CONFIGURATION ####
214 ### LOGGING CONFIGURATION ####
215 ################################
215 ################################
216 [loggers]
216 [loggers]
217 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
217 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
218
218
219 [handlers]
219 [handlers]
220 keys = console, console_sql
220 keys = console, console_sql
@@ -260,6 +260,12 b' handlers = console_sql'
260 qualname = sqlalchemy.engine
260 qualname = sqlalchemy.engine
261 propagate = 0
261 propagate = 0
262
262
263 [logger_whoosh_indexer]
264 level = DEBUG
265 handlers =
266 qualname = whoosh_indexer
267 propagate = 1
268
263 ##############
269 ##############
264 ## HANDLERS ##
270 ## HANDLERS ##
265 ##############
271 ##############
@@ -224,7 +224,7 b' sqlalchemy.convert_unicode = true'
224 ### LOGGING CONFIGURATION ####
224 ### LOGGING CONFIGURATION ####
225 ################################
225 ################################
226 [loggers]
226 [loggers]
227 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
227 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
228
228
229 [handlers]
229 [handlers]
230 keys = console, console_sql
230 keys = console, console_sql
@@ -270,6 +270,12 b' handlers = console_sql'
270 qualname = sqlalchemy.engine
270 qualname = sqlalchemy.engine
271 propagate = 0
271 propagate = 0
272
272
273 [logger_whoosh_indexer]
274 level = DEBUG
275 handlers =
276 qualname = whoosh_indexer
277 propagate = 1
278
273 ##############
279 ##############
274 ## HANDLERS ##
280 ## HANDLERS ##
275 ##############
281 ##############
@@ -25,6 +25,7 b''
25 import os
25 import os
26 import sys
26 import sys
27 import traceback
27 import traceback
28 import logging
28 from os.path import dirname as dn, join as jn
29 from os.path import dirname as dn, join as jn
29
30
30 #to get the rhodecode import
31 #to get the rhodecode import
@@ -84,7 +85,7 b' class MakeIndex(BasePasterCommand):'
84 parser = Command.standard_parser(verbose=True)
85 parser = Command.standard_parser(verbose=True)
85
86
86 def command(self):
87 def command(self):
87
88 logging.config.fileConfig(self.path_to_ini_file)
88 from pylons import config
89 from pylons import config
89 add_cache(config)
90 add_cache(config)
90 engine = engine_from_config(config, 'sqlalchemy.db1.')
91 engine = engine_from_config(config, 'sqlalchemy.db1.')
@@ -629,6 +629,6 b' class BasePasterCommand(Command):'
629 """
629 """
630 from pylons import config as pylonsconfig
630 from pylons import config as pylonsconfig
631
631
632 path_to_ini_file = os.path.realpath(conf)
632 self.path_to_ini_file = os.path.realpath(conf)
633 conf = paste.deploy.appconfig('config:' + path_to_ini_file)
633 conf = paste.deploy.appconfig('config:' + self.path_to_ini_file)
634 pylonsconfig.init_app(conf.global_conf, conf.local_conf)
634 pylonsconfig.init_app(conf.global_conf, conf.local_conf)
General Comments 0
You need to be logged in to leave comments. Login now