rewrite logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-11-04 00:38:12 +03:00
parent 7c311aea19
commit e41bb5ebc5
26 changed files with 235 additions and 387 deletions

View File

@@ -4,6 +4,8 @@ import (
"fmt"
"reflect"
"strings"
"github.com/unistack-org/micro/v3/metadata"
)
// Extract *Value from reflect.Type
@@ -94,7 +96,7 @@ func ExtractEndpoint(method reflect.Method) *Endpoint {
Name: method.Name,
Request: request,
Response: response,
Metadata: make(map[string]string),
Metadata: metadata.New(0),
}
if stream {