From 531a435ec4d0a93d88277eff6f5824a5eddbe103 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 25 Jan 2013 09:57:36 +0100 Subject: Sync io to log files --- web/config.ru | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/config.ru b/web/config.ru index 532c1d3..c399056 100644 --- a/web/config.ru +++ b/web/config.ru @@ -10,10 +10,12 @@ set :environment, :production today = Time.now.strftime('%Y-%m-%d') log = File.new("/osm/taginfo/var/log/taginfo-#{ today }.log", "a") +log.sync = true $stdout.reopen(log) $stderr.reopen(log) $queries_log = File.new("/osm/taginfo/var/log/queries-#{ today }.log", "a") +$queries_log.sync = true run Taginfo -- cgit v1.2.3