Skip to content

Commit 813f632

Browse files
author
Thomas Dalous
committed
fix: make debug file readable not just write-only
1 parent d0d48b9 commit 813f632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algolia/logger_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class LoggerHelper
55
# @param debug_file [nil|String] file used to output the logs
66
#
77
def self.create(debug_file = nil)
8-
file = debug_file || (ENV['ALGOLIA_DEBUG'] ? File.open('debug.log', 'a') : $stderr)
8+
file = debug_file || (ENV['ALGOLIA_DEBUG'] ? File.open('debug.log', 'a+') : $stderr)
99
instance = ::Logger.new file
1010
instance.progname = 'algolia'
1111
instance

0 commit comments

Comments
 (0)