fix: captain logging json format

This commit is contained in:
Shivam Mishra
2025-07-30 19:15:15 +05:30
parent 781fafd560
commit 802431f2f2
+1 -1
View File
@@ -10,7 +10,7 @@ module Captain::Loggable
# Add timestamp to all log data
log_data[:timestamp] = Time.current.iso8601
Rails.logger.info "[CAPTAIN_DEBUG] #{prefix} [#{event_type}] #{JSON.pretty_generate(log_data)}"
Rails.logger.info "[CAPTAIN_DEBUG] #{prefix} [#{event_type}] #{JSON.generate(log_data)}"
end
def log_captain_request(tools, temperature)