-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18654 from nak3/diagnostics
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 ```
- Loading branch information
Showing
3 changed files
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters