From 8d777d00c143e587d6de8016668ac0de5e403655 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 25 Jan 2013 09:55:14 +0100 Subject: Open logfiles with mode a instead of a+ --- web/config.ru | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/config.ru') diff --git a/web/config.ru b/web/config.ru index a926fe8..532c1d3 100644 --- a/web/config.ru +++ b/web/config.ru @@ -9,11 +9,11 @@ set :run, false set :environment, :production today = Time.now.strftime('%Y-%m-%d') -log = File.new("/osm/taginfo/var/log/taginfo-#{ today }.log", "a+") +log = File.new("/osm/taginfo/var/log/taginfo-#{ today }.log", "a") $stdout.reopen(log) $stderr.reopen(log) -$queries_log = File.new("/osm/taginfo/var/log/queries-#{ today }.log", "a+") +$queries_log = File.new("/osm/taginfo/var/log/queries-#{ today }.log", "a") run Taginfo -- cgit v1.2.3