Permalink
Browse files

Add log_level into rcfile.sample; honor log_path in fable

* Log_path was not being honored by fable even if it was set in rcfile
  • Loading branch information...
cybertoast committed Apr 20, 2012
1 parent e2760ae commit 7f3a7051c151be174c45d6dfb5c5c0a94be881eb
Showing with 4 additions and 1 deletion.
  1. +1 −0 etc/config.yaml.tmpl
  2. +1 −1 fabfile.py
  3. +2 −0 rcfile.sample
View
@@ -41,6 +41,7 @@ instance: %(instance)s
htaccess: %(htaccess)s
logfile: %(logfile)s
log_archive_path: %(log_archive_path)s
+loglevel: %(log_level)s
# Locations
#--------------------------------------------------------------------
View
@@ -208,7 +208,7 @@ def wrapper():
# Configuration Template Files and config files
env.etc_path = '%(app_path)s/etc' % env
- env.log_path = '%(app_path)s/var/log' % env
+ env.log_path = env.log_path or '%(app_path)s/var/log' % env
env.local_etc_path = '%(build_path)s/etc' % env
# Todo: these might need to be moved to a common location
View
@@ -41,6 +41,8 @@ branch = develop
logfile = %(log_path)s/%(application)s.log
# Path to store old log files (post-rotate, by logrotate.d)
log_archive_path = /mnt/var/log/
+# Log level is lowercase - debug, info, warning, error, etc.
+log_level = debug
#------------------------------------------------
# LOCAL (user-specific) Parameters

0 comments on commit 7f3a705

Please sign in to comment.