forked from hswaw/hscloud
make Trace be a function instead of a method
This commit is contained in:
parent
bbb5b5fa96
commit
c99e0b9166
1 changed files with 1 additions and 1 deletions
2
mirko.go
2
mirko.go
|
@ -113,7 +113,7 @@ func (m *Mirko) Listen() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *Mirko) Trace(ctx context.Context, f string, args ...interface{}) {
|
||||
func Trace(ctx context.Context, f string, args ...interface{}) {
|
||||
tr, ok := trace.FromContext(ctx)
|
||||
if !ok {
|
||||
fmtd := fmt.Sprintf(f, args...)
|
||||
|
|
Loading…
Reference in a new issue