Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed May 2, 2024
1 parent 83e3017 commit f5bc068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/scripts/inspect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function collect_service_diagnostics {
local n_restarts
n_restarts=$(systemctl show "snap.$service" -p NRestarts | cut -d'=' -f2)

printf -- "%s NRestarts=%s" "$service" "$n_restarts" >> "$INSPECT_DUMP/nrestarts.log"
printf -- "%s -> %s\n" "$service" "$n_restarts" >> "$INSPECT_DUMP/nrestarts.log"

if [ "$n_restarts" -gt 0 ]; then
log_warning "Service $service has restarted $n_restarts times due to errors"
Expand Down

0 comments on commit f5bc068

Please sign in to comment.