Skip to content

Commit d82e0d1

Browse files
elvin03Copilot
andauthored
Update cmd/os-image-composer/build.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3bb9add commit d82e0d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/os-image-composer/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ post:
126126
if buildErr == nil {
127127
log.Info("image build completed successfully")
128128
} else {
129-
// log.Errorf("image build failed: %v", buildErr)
130129
// Avoid logging the full error chain to prevent potential leakage of sensitive data.
131-
log.Error("image build failed")
130+
// Log only the error type/category to aid debugging without exposing sensitive details.
131+
log.Errorf("image build failed (error type: %T)", buildErr)
132132
}
133133

134134
return buildErr

0 commit comments

Comments
 (0)