diff --git a/log/logwriter/writer.go b/log/logwriter/writer.go index 89513b807..559c3eae4 100644 --- a/log/logwriter/writer.go +++ b/log/logwriter/writer.go @@ -20,6 +20,7 @@ func (w LogWriter) Write(p []byte) (n int, err error) { if len(p) == 0 { return 0, nil } + level, message := convertColoredString(string(p)) w.logger.LogMessage(message, level) return len(p), nil diff --git a/log/logwriter/writer_test.go b/log/logwriter/writer_test.go index c33018b47..6d06dbf5b 100644 --- a/log/logwriter/writer_test.go +++ b/log/logwriter/writer_test.go @@ -7,11 +7,10 @@ import ( "testing" "time" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "github.com/bitrise-io/bitrise/log" "github.com/bitrise-io/bitrise/log/logwriter" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func referenceTime() time.Time {