Skip to content

Commit 29b6a86

Browse files
authored
Merge pull request #12 from ReconfigureIO/feature/no-timestamp
remove timestamps on reco output
2 parents dfc1b39 + 22a1c7e commit 29b6a86

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

client.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ func decodeJSON(r io.Reader, body interface{}) error {
240240
}
241241

242242
func (p clientImpl) logJob(eventType string, id string) error {
243-
logger.Info.Println("streaming logs for ", eventType, " ", id)
243+
logger.Info.Println("Beginning log stream for ", eventType, " ", id)
244+
logger.Info.Println()
244245
return p.logs(eventType, id)
245246
}
246247

@@ -297,7 +298,7 @@ func (p clientImpl) waitAndLog(jobType string, id string) error {
297298
if err != nil {
298299
return err
299300
}
300-
return p.logs(jobType, id)
301+
return p.logJob(jobType, id)
301302
}
302303

303304
func (p clientImpl) logs(jobType string, id string) error {

logger/logger.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ import (
55
"io"
66
"os"
77
"sync"
8-
"time"
98
)
109

11-
const timeFormat = "2006-01-02 15:04:05"
12-
1310
var (
1411
// Std is standard logger. It writes outputs to stdout.
1512
Std Logger = &logger{writer: os.Stdout}
@@ -20,7 +17,7 @@ var (
2017
)
2118

2219
func prefix() string {
23-
return fmt.Sprintf("%s| ", time.Now().Format(timeFormat))
20+
return ""
2421
}
2522

2623
func errPrefix() string {

0 commit comments

Comments
 (0)