summaryrefslogtreecommitdiff
path: root/ui/status/log.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2019-11-26 16:20:03 -0800
committer Colin Cross <ccross@android.com> 2019-11-26 16:21:58 -0800
commitff27ce4cc08a27a98a03f2986a25e9bb9b7d0673 (patch)
tree8c6d1ef340e87d409d780558d2d1a15a2d0dc0bf /ui/status/log.go
parent28f527c3daf850c784defd5994ed6486a285ffce (diff)
Fix errorProtoLog error messages
Use Printf instead of Println for formatted strings, and pass the filename instead of the proto. Test: cuj_tests Change-Id: Id261b5a34304a0caa61faa1f3bbc388aacdd25a6
Diffstat (limited to 'ui/status/log.go')
-rw-r--r--ui/status/log.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/status/log.go b/ui/status/log.go
index 9090f4995..d40724809 100644
--- a/ui/status/log.go
+++ b/ui/status/log.go
@@ -180,12 +180,12 @@ func (e *errorProtoLog) FinishAction(result ActionResult, counts Counts) {
func (e *errorProtoLog) Flush() {
data, err := proto.Marshal(&e.errorProto)
if err != nil {
- e.log.Println("Failed to marshal build status proto: %v", err)
+ e.log.Printf("Failed to marshal build status proto: %v\n", err)
return
}
err = ioutil.WriteFile(e.filename, []byte(data), 0644)
if err != nil {
- e.log.Println("Failed to write file %s: %v", e.errorProto, err)
+ e.log.Printf("Failed to write file %s: %v\n", e.filename, err)
}
}