clarify the appropriate place to use the debug flag when viewing warnings

Signed-off-by: Talon Bowler <talon.bowler@docker.com>
(cherry picked from commit cedbc5d68d0a05ca5462c44ff035da1e94c1149d)
This commit is contained in:
Talon Bowler 2024-07-18 08:36:34 -07:00 committed by CrazyMax
parent 9d8cf0bed3
commit dd3bb69a1e
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -835,7 +835,7 @@ func printWarnings(w io.Writer, warnings []client.VertexWarning, mode progressui
fmt.Fprintf(sb, "%d warnings found", len(warnings)) fmt.Fprintf(sb, "%d warnings found", len(warnings))
} }
if logrus.GetLevel() < logrus.DebugLevel { if logrus.GetLevel() < logrus.DebugLevel {
fmt.Fprintf(sb, " (use --debug to expand)") fmt.Fprintf(sb, " (use docker --debug to expand)")
} }
fmt.Fprintf(sb, ":\n") fmt.Fprintf(sb, ":\n")
fmt.Fprint(w, aec.Apply(sb.String(), aec.YellowF)) fmt.Fprint(w, aec.Apply(sb.String(), aec.YellowF))