Skip to content

Commit

Permalink
Merge pull request #186 from cptmorgan-rh/main
Browse files Browse the repository at this point in the history
Update verbiage in node-logs.go
  • Loading branch information
gmeghnag authored Nov 22, 2024
2 parents 51b3519 + 6e26003 commit 2861e60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/node-logs/node-logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import (
)

var NodeLogs = &cobra.Command{
Use: "node-logs",
Use: "node-logs",
Short: "Display and filter node logs.",
Run: func(cmd *cobra.Command, args []string) {
if len(args) == 0 {
fmt.Println("The following node services logs are available to be read:")
fmt.Println("The following node service logs are available to be displayed:")
fmt.Println("")
files, _ := os.ReadDir(vars.MustGatherRootPath + "/host_service_logs/masters/")
for _, f := range files {
fmt.Println("-", strings.TrimSuffix(f.Name(), "_service.log"))
}
fmt.Println("\nis it possible to read the content by executing 'omc node-logs <SERVICE>'.")
fmt.Println("\nExecuting 'omc node-logs <SERVICE>' will display the logs.")
}
if len(args) > 1 {
fmt.Fprintln(os.Stderr, "Expect zero arguemnt, found: ", len(args))
Expand Down

0 comments on commit 2861e60

Please sign in to comment.