From dbd7cdbb0d953a86680b26b01e449e2b4eee4d50 Mon Sep 17 00:00:00 2001 From: Ivan Eroshkin Date: Mon, 5 Jun 2023 15:40:32 +0200 Subject: [PATCH] Switching log level back to Info in Go APER library (#234) --- VERSION | 2 +- pkg/asn1/aper/aper.go | 2 +- pkg/asn1/aper/marshal.go | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 731ff2c..d3dd9cb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.10.22-dev +0.10.22 diff --git a/pkg/asn1/aper/aper.go b/pkg/asn1/aper/aper.go index 20e409a..2e14f37 100644 --- a/pkg/asn1/aper/aper.go +++ b/pkg/asn1/aper/aper.go @@ -1259,7 +1259,7 @@ func Unmarshal(b []byte, value interface{}, choiceMap map[string]map[int]reflect // UnmarshalWithParams allows field parameters to be specified for the // top-level element. The form of the params is the same as the field tags. func UnmarshalWithParams(b []byte, value interface{}, params string, choiceMap map[string]map[int]reflect.Type, canonicalChoiceMap map[string]map[int64]reflect.Type) error { - log.SetLevel(logging.DebugLevel) + //log.SetLevel(logging.DebugLevel) v := reflect.ValueOf(value).Elem() pd := &perBitData{b, 0, 0, choiceMap, -1, false, false, canonicalChoiceMap, false} err := parseField(v, pd, parseFieldParameters(params)) diff --git a/pkg/asn1/aper/marshal.go b/pkg/asn1/aper/marshal.go index 46f1bb9..2cef9f5 100644 --- a/pkg/asn1/aper/marshal.go +++ b/pkg/asn1/aper/marshal.go @@ -8,7 +8,6 @@ import ( "encoding/hex" "fmt" "github.com/onosproject/onos-lib-go/pkg/errors" - "github.com/onosproject/onos-lib-go/pkg/logging" "math" "reflect" ) @@ -1285,7 +1284,7 @@ func Marshal(val interface{}, choiceMap map[string]map[int]reflect.Type, canonic // top-level element. The form of the params is the same as the field tags. func MarshalWithParams(val interface{}, params string, choiceMap map[string]map[int]reflect.Type, canonicalChoiceMap map[string]map[int64]reflect.Type) ([]byte, error) { // ToDo - sequenceCanBeExtended may cause potential problems - log.SetLevel(logging.DebugLevel) + //log.SetLevel(logging.DebugLevel) pd := &perRawBitData{[]byte(""), 0, choiceMap, -1, canonicalChoiceMap, false} err := pd.makeField(reflect.ValueOf(val), parseFieldParameters(params)) if err != nil {