bryancall opened a new pull request, #12900: URL: https://github.com/apache/trafficserver/pull/12900
* **New `unmarshal_milestone_diff()` function** -- outputs a single `-` character when the marshalled milestone difference is negative (i.e., one or both milestones were unset), instead of the literal string `-1`. This makes log parsing cleaner: parsers can distinguish "0 ms" (a valid sub-millisecond timing) from "not applicable" without checking for a magic integer sentinel. * **MSDMS container uses new unmarshal function** -- `LogField.cc` now assigns `unmarshal_milestone_diff` instead of the generic `unmarshal_int_to_str` for MSDMS fields. **Example output change:** ``` # Before: unset milestone shows -1 c_tls=-1 dns=-1 o_tcp=-1 # After: unset milestone shows - c_tls=- dns=- o_tcp=- ``` **Testing:** Validated with the milestone logging autest from #12899 (updated to accept `-` as a valid sentinel). Manual verification with `traffic_logcat` on binary logs. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
