Skip to content

Commit

Permalink
* Bug: Fix bug where log is initialized for every NewStream.
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-yakop committed Jan 1, 2021
1 parent 315de21 commit 444b1a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/tickdata/stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ var isLogSetup = false
// time are in UTC
func NewStream(symbol string, start time.Time, end time.Time, downloadFolderPath string) *Stream {
if !isLogSetup {
isLogSetup = true
clog.NewConsole(0, clog.ConsoleConfig{
Level: clog.LevelInfo,
})
Expand Down

0 comments on commit 444b1a9

Please sign in to comment.