Skip to content

Commit 4b00dac

Browse files
author
kpango
committed
fix
1 parent 58141bc commit 4b00dac

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

glg.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
package glg
33

44
import (
5-
"context"
65
"fmt"
76
"io"
87
"net/http"
@@ -17,12 +16,10 @@ import (
1716

1817
// Glg is glg base struct
1918
type Glg struct {
20-
logger sync.Map // map[uint8]*logger
21-
timer *atomic.Value // []byte
19+
logger sync.Map // map[uint8]*logger
2220
levelCounter *uint32
2321
levelMap sync.Map
2422
buffer sync.Pool
25-
cancel context.CancelFunc
2623
}
2724

2825
// MODE is logging mode (std only, writer only, std & writer)
@@ -235,12 +232,6 @@ func Get() *Glg {
235232
return glg
236233
}
237234

238-
// Stop stops glg timer daemon
239-
func (g *Glg) Stop() *Glg {
240-
g.cancel()
241-
return g
242-
}
243-
244235
// SetMode sets glg logging mode
245236
func (g *Glg) SetMode(mode MODE) *Glg {
246237
g.logger.Range(func(key, val interface{}) bool {

0 commit comments

Comments
 (0)