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
Automatic merge from submit-queue.
[Diagnostics] Fix AnalyzeLogs to provide more clear debug message
When we run `oc adm diagnostics AnalyzeLogs`, diagnostics command
often misses error messsages in journal logs. So, as an admin we are
trying to find out the reason, but debug message gives us unclear
message:
```
$ oc adm diagnostics AnalyzeLogs -l=0
...
debug: Stopped reading docker log: timestamp 1518835107917828 too old
...
```
So, this patch changes regarding AnayzeLogs as:
- Output field of struct of discovered systemd unit
- Produce correct error message if journal log has invalid timestamp
- Output why diagnostics stopped reading logs with readable timestamp.
Here is the message after applied this patch:
```
debug: Stopped reading docker log: timestamp 2018-02-17 11:33:58 +0900 JST more than 1 hour ago
```
0 commit comments