Silence error during microfactory trace import

This may happen if there's been another call to microfactory before
we've read the log file. Just ignore the error and continue.

Test: Run `while true; do get_build_var TARGET_PRODUCT; done` in parallel
Change-Id: I670144f4637281ebf1299dbd9151dd9819c363e3
This commit is contained in:
Dan Willemsen 2017-10-18 13:25:50 -07:00
parent ca8feb385c
commit 69b18ed167

View file

@ -28,7 +28,7 @@ func (t *tracerImpl) ImportMicrofactoryLog(filename string) {
f, err := os.Open(filename) f, err := os.Open(filename)
if err != nil { if err != nil {
t.log.Println("Error opening microfactory trace:", err) t.log.Verboseln("Error opening microfactory trace:", err)
return return
} }
defer f.Close() defer f.Close()