##// 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 172 beaker.session.type = file
173 173 beaker.session.key = rhodecode
174 # secure cookie requires AES python libraries
174 175 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
175 176 #beaker.session.validate_key = 9712sds2212c--zxc123
176 177 beaker.session.timeout = 36000
@@ -213,7 +214,7 b' sqlalchemy.convert_unicode = true'
213 214 ### LOGGING CONFIGURATION ####
214 215 ################################
215 216 [loggers]
216 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
217 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
217 218
218 219 [handlers]
219 220 keys = console, console_sql
@@ -259,6 +260,12 b' handlers = console_sql'
259 260 qualname = sqlalchemy.engine
260 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 270 ## HANDLERS ##
264 271 ##############
@@ -214,7 +214,7 b' sqlalchemy.convert_unicode = true'
214 214 ### LOGGING CONFIGURATION ####
215 215 ################################
216 216 [loggers]
217 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
217 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
218 218
219 219 [handlers]
220 220 keys = console, console_sql
@@ -260,6 +260,12 b' handlers = console_sql'
260 260 qualname = sqlalchemy.engine
261 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 270 ## HANDLERS ##
265 271 ##############
@@ -224,7 +224,7 b' sqlalchemy.convert_unicode = true'
224 224 ### LOGGING CONFIGURATION ####
225 225 ################################
226 226 [loggers]
227 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
227 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
228 228
229 229 [handlers]
230 230 keys = console, console_sql
@@ -270,6 +270,12 b' handlers = console_sql'
270 270 qualname = sqlalchemy.engine
271 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 280 ## HANDLERS ##
275 281 ##############
@@ -25,6 +25,7 b''
25 25 import os
26 26 import sys
27 27 import traceback
28 import logging
28 29 from os.path import dirname as dn, join as jn
29 30
30 31 #to get the rhodecode import
@@ -84,7 +85,7 b' class MakeIndex(BasePasterCommand):'
84 85 parser = Command.standard_parser(verbose=True)
85 86
86 87 def command(self):
87
88 logging.config.fileConfig(self.path_to_ini_file)
88 89 from pylons import config
89 90 add_cache(config)
90 91 engine = engine_from_config(config, 'sqlalchemy.db1.')
@@ -629,6 +629,6 b' class BasePasterCommand(Command):'
629 629 """
630 630 from pylons import config as pylonsconfig
631 631
632 path_to_ini_file = os.path.realpath(conf)
633 conf = paste.deploy.appconfig('config:' + path_to_ini_file)
632 self.path_to_ini_file = os.path.realpath(conf)
633 conf = paste.deploy.appconfig('config:' + self.path_to_ini_file)
634 634 pylonsconfig.init_app(conf.global_conf, conf.local_conf)
General Comments 0
You need to be logged in to leave comments. Login now