lib/cryptum/open_ai.rb in cryptum-0.0.409 vs lib/cryptum/open_ai.rb in cryptum-0.0.410
- old
+ new
@@ -66,10 +66,10 @@
Cryptum::Log.append(level: :error, msg: e, which_self: self)
end
response
rescue RestClient::ExceptionWithResponse => e
File.open('/tmp/cryptum-errors.txt', 'a') do |f|
- f.puts Time.now.strftime('%Y-%m-%d %H:%M:%S.%N %z')
+ f.puts Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
f.puts "Module: #{self}"
f.puts "URL: #{api_endpoint}#{api_call}"
f.puts "PARAMS: #{params.inspect}"
f.puts "HTTP POST BODY: #{http_body.inspect}" if http_body != ''
f.puts "#{e}\n#{e.response}\n\n\n"