Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service: Avoid underflow in logs padding calculation
This command inserts a variable amount of padding in the log line: padding := strings.Repeat(" ", f.padding-getMaxLength(task.Slot)) If the service is scaled up, or the slot numbers are noncontiguous, the subtraction can underflow, causing a crash. Signed-off-by: Aaron Lehmann <[email protected]>
- Loading branch information