logger/unwrap: support sql and proto wrapper types #180

Merged
vtolstov merged 2 commits from logger-wrapper into v3 2023-02-06 18:55:40 +03:00
Showing only changes of commit 5a554f9f0c - Show all commits

View File

@ -616,7 +616,7 @@ func (f *unwrap) checkTakeAll(v reflect.Value) bool {
switch v.Kind() { switch v.Kind() {
case reflect.Struct: case reflect.Struct:
break break
case reflect.Pointer: case reflect.Ptr:
v = v.Elem() v = v.Elem()
if v.Kind() != reflect.Struct { if v.Kind() != reflect.Struct {
return true return true