Allow command-line paste serve var 'heartbeat_log' to override heartbeat log filename, done like this so we can use a single config file for multiple instances but prevent them from clobbering file names.

This commit is contained in:
Nate Coraor
2010-08-16 11:17:39 -04:00
parent 70a68cd688
commit dfaf32acbb
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class UniverseApplication( object ):
if self.config.use_heartbeat:
from galaxy.util import heartbeat
if heartbeat.Heartbeat:
self.heartbeat = heartbeat.Heartbeat()
self.heartbeat = heartbeat.Heartbeat( fname=self.config.heartbeat_log )
self.heartbeat.start()
# Enable the memdump signal catcher if configured and available
if self.config.use_memdump:
+2
View File
@@ -114,6 +114,8 @@ class Configuration( object ):
self.global_conf_parser = global_conf_parser
if global_conf and "__file__" in global_conf:
global_conf_parser.read(global_conf['__file__'])
# Heartbeat log file name override
self.heartbeat_log = global_conf.get( 'heartbeat_log', 'heartbeat.log' )
#Store per-tool runner config
try:
self.tool_runners = global_conf_parser.items("galaxy:tool_runners")