mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
quadlet: explicitly discard logToKmsg return in Logf
Logf now always writes to stderr, so the kmsg write is best-effort and its bool return is intentionally ignored. Make the discard explicit with `_ = logToKmsg(line)` per review, rather than leaving it implicit. Signed-off-by: mvanhorn <mvanhorn@gmail.com>
This commit is contained in:
parent
f49b4b3f84
commit
6d57281d6a
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ func Logf(format string, a ...any) {
|
|||
s := fmt.Sprintf(format, a...)
|
||||
line := fmt.Sprintf("quadlet-generator[%d]: %s", os.Getpid(), s)
|
||||
|
||||
logToKmsg(line)
|
||||
_ = logToKmsg(line)
|
||||
|
||||
fmt.Fprintf(os.Stderr, "%s\n", line)
|
||||
os.Stderr.Sync()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue