diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-02 20:28:25 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-02-11 18:42:36 +0100 |
commit | 63d2c7554e12dca3cde77431acc7d32ec8a3ba8c (patch) | |
tree | 73df8e5b9bcb42fc7ef96a1e5a97aec0546dfa51 /man | |
parent | sd-journal: drop to use Hashmap to manage journal files per boot ID (diff) | |
download | systemd-63d2c7554e12dca3cde77431acc7d32ec8a3ba8c.tar.xz systemd-63d2c7554e12dca3cde77431acc7d32ec8a3ba8c.zip |
logs-show: get timestamp and boot ID only when necessary
Previously, get_display_timestamp() is unconditionally called even if we
will show logs in e.g. json format.
This drops unnecessary call of get_display_timestamp().
This also makes journal fields in each entry parsed only once in
output_short(). Still output_verbose() twice though.
This should improve performance of dumping journals.
Replaces #29365.
Co-authored-by: Costa Tsaousis <costa@netdata.cloud>
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions