Skip to content

Commit

Permalink
was trying to make wrong log dir; always log to console in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Stroop committed Nov 18, 2013
1 parent 5da688b commit ce22402
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loris/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def create_app(debug=False):
config['img.ImageCache']['cache_dp'] = '/tmp/loris/cache/img'
config['img_info.InfoCache']['cache_dp'] = '/tmp/loris/cache/info'
config['resolver.Resolver']['src_img_root'] = path.join(project_dp, 'tests', 'img')

config['log']['log_to'] == 'console'
else:
logger.debug('Running in production mode.')
conf_fp = path.join(ETC_DP, 'loris.conf')
Expand All @@ -87,7 +89,7 @@ def create_app(debug=False):
try:
dirs_to_make.append(config['loris.Loris']['tmp_dp'])
if config['log']['log_to'] == 'file':
dirs_to_make.append(config['logging']['log_dir'])
dirs_to_make.append(config['log']['log_dir'])
if config['loris.Loris']['enable_caching']:
dirs_to_make.append(config['img.ImageCache']['cache_dp'])
dirs_to_make.append(config['img.ImageCache']['cache_links'])
Expand Down

0 comments on commit ce22402

Please sign in to comment.