aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-25 09:57:36 +0100
committerJochen Topf <jochen@topf.org>2013-01-25 09:57:36 +0100
commit531a435ec4d0a93d88277eff6f5824a5eddbe103 (patch)
tree7992b8e411bc04756f3a19df91b02a566e5fca7b /web
parent8d777d00c143e587d6de8016668ac0de5e403655 (diff)
downloadtaginfo-531a435ec4d0a93d88277eff6f5824a5eddbe103.tar
taginfo-531a435ec4d0a93d88277eff6f5824a5eddbe103.tar.gz
Sync io to log files
Diffstat (limited to 'web')
-rw-r--r--web/config.ru2
1 files changed, 2 insertions, 0 deletions
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