ansh0014 commented on issue #14064:
URL:
https://github.com/apache/trafficserver/issues/14064#issuecomment-6908053676
@ hey, bryancall
I am working on this. Here is my approach:
1. Add the three `rolling_min_count` records
(`proxy.config.log.rolling_min_count`,
`proxy.config.diags.logfile.rolling_min_count`, and
`proxy.config.output.logfile.rolling_min_count`) to `names[]` in
`LogConfig::register_config_callbacks()`.
2. Update `proxy.config.log.ascii_buffer_size` and
`proxy.config.log.max_line_size` in `RecordsConfig.cc` to `RECU_RESTART_TS`
since the docs treat them as needing a restart.
3. For `proxy.config.log.log_fast_buffer`, update `LogObject::operator==` to
compare the fast buffer flag so dynamic reload picks up the change (or switch
to `RECU_RESTART_TS` if you prefer restart-only).
4. Add `ink_assert(0 == registry.attach("logging", names[i]))` in
`LogConfig::register_config_callbacks()` to catch misnamed or missing records
at startup.
I'm preparing the PR now.
--
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]