You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Array message handling in parser methods (silva96#62)
Some log formats may have the 'message' field as an Array instead of a
String. The parser methods were calling String methods like match?() and
include?() directly on the message field, which caused 'undefined method
match? for an instance of Array' errors.
Changes:
- Add normalize_message() helper method to handle String, Array, nil, and
other types
- Update all message detection methods (sql_message?, cache_message?,
call_stack_message?, job_enqueue_message?) to use normalize_message()
- Update Entry class to normalize messages when setting content
- Update CallLineEntry to use normalized messages
- Update extract_job_id_from_enqueue() to handle Array messages
- Add comprehensive test coverage for Array message handling
Fixes issue where log_bench would crash when encountering log entries
with Array messages, particularly affecting job enqueue detection.
0 commit comments