##// END OF EJS Templates
logging: show version at app startup for debugging.
marcink -
r3283:663dcfce default
parent child Browse files
Show More
@@ -21,6 +21,7 b''
21
21
22 import logging
22 import logging
23
23
24 import rhodecode
24 from rhodecode.model import meta, db
25 from rhodecode.model import meta, db
25 from rhodecode.lib.utils2 import obfuscate_url_pw, get_encryption_key
26 from rhodecode.lib.utils2 import obfuscate_url_pw, get_encryption_key
26
27
@@ -36,7 +37,7 b' def init_model(engine, encryption_key=No'
36 :param engine: engine to bind to
37 :param engine: engine to bind to
37 """
38 """
38 engine_str = obfuscate_url_pw(str(engine.url))
39 engine_str = obfuscate_url_pw(str(engine.url))
39 log.info("initializing db for %s", engine_str)
40 log.info("RhodeCode %s initializing db for %s", rhodecode.__version__, engine_str)
40 meta.Base.metadata.bind = engine
41 meta.Base.metadata.bind = engine
41 db.ENCRYPTION_KEY = encryption_key
42 db.ENCRYPTION_KEY = encryption_key
42
43
General Comments 0
You need to be logged in to leave comments. Login now