summaryrefslogtreecommitdiff
path: root/web/config.ru
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-25 09:55:14 +0100
committerJochen Topf <jochen@topf.org>2013-01-25 09:55:14 +0100
commit8d777d00c143e587d6de8016668ac0de5e403655 (patch)
treeeb49a4aee10976c4bda194543f241e1738e4c47a /web/config.ru
parent4ca675d4e77955b75786fd43450ce773cd0c5559 (diff)
downloadtaginfo-8d777d00c143e587d6de8016668ac0de5e403655.tar
taginfo-8d777d00c143e587d6de8016668ac0de5e403655.tar.gz
Open logfiles with mode a instead of a+
Diffstat (limited to 'web/config.ru')
-rw-r--r--web/config.ru4
1 files changed, 2 insertions, 2 deletions
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