Skip to content

Commit

Permalink
Switching log level back to Info in Go APER library (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Eroshkin authored Jun 5, 2023
1 parent 5d7f02a commit dbd7cdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.22-dev
0.10.22
2 changes: 1 addition & 1 deletion pkg/asn1/aper/aper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 1 addition & 2 deletions pkg/asn1/aper/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit dbd7cdb

Please sign in to comment.