# HG changeset patch # User Marcin Kuzminski # Date 2012-02-14 21:09:25 # Node ID 9e0db8d8d616221000d4b27fe3ad347bbba1d4cc # Parent 24c1ba054b9b2335137940b942730b714c56e29a changed warning log message for reading hgrc files, it was confusing. It's just an indication of the fact that there is no such file... diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -259,14 +259,14 @@ def make_ui(read_from='file', path=None, baseui = ui.ui() - #clean the baseui object + # clean the baseui object baseui._ocfg = config.config() baseui._ucfg = config.config() baseui._tcfg = config.config() if read_from == 'file': if not os.path.isfile(path): - log.warning('Unable to read config file %s' % path) + log.debug('hgrc file is not present at %s skipping...' % path) return False log.debug('reading hgrc from %s' % path) cfg = config.config() @@ -279,8 +279,8 @@ def make_ui(read_from='file', path=None, elif read_from == 'db': sa = meta.Session ret = sa.query(RhodeCodeUi)\ - .options(FromCache("sql_cache_short", - "get_hg_ui_settings")).all() + .options(FromCache("sql_cache_short", "get_hg_ui_settings"))\ + .all() hg_ui = ret for ui_ in hg_ui: