make Trace be a function instead of a method

master
Serge Bazanski 2018-10-14 18:03:48 +01:00
parent bbb5b5fa96
commit c99e0b9166
1 changed files with 1 additions and 1 deletions

View File

@ -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...)