Skip to content

Commit

Permalink
feat: add debug logging of requests/responses
Browse files Browse the repository at this point in the history
This commit adds debug logging of outbound requests and inbound
responses.  These will be logged if log level "debug" is enabled.

BREAKING CHANGE: several methods added to Logger interface

Several methods were added to the Go core's Logger interface:
SetLogLevel(), GetLogLevel(), and IsLogLevelEnabled().
These additional methods will need to be added to any
user implementations of the Logger interface.

BREAKING CHANGE: additional parameter added to NewLogger() signature

The NewLogger() function has a new parameter "errorLogger".
Any calls to NewLogger() will need to be modified to include the
new parameter.

BREAKING CHANGE: deprecated unmarshal-related methods have been removed

Several deprecated unmarshal-related methods were removed from the Go core:
- UnmarshalString, UnmarshalStringSlice, UnmarshalStringMap, UnmarshalStringMapSlice
- UnmarshalByteArray, UnmarshalByteArraySlice, UnmarshalByteArrayMap, UnmarshalByteArrayMapSlice
- UnmarshalBool, UnmarshalBoolSlice, UnmarshalBoolMap, UnmarshalBoolMapSlice
- UnmarshalInt64, UnmarshalInt64Slice, UnmarshalInt64Map, UnmarshalInt64MapSlice
- UnmarshalFloat32, UnmarshalFloat32Slice, UnmarshalFloat32Map, UnmarshalFloat32MapSlice
- UnmarshalFloat64, UnmarshalFloat64Slice, UnmarshalFloat64Map, UnmarshalFloat64MapSlice
- UnmarshalUUID, UnmarshalUUIDSlice, UnmarshalUUIDMap, UnmarshalUUIDMapSlice
- UnmarshalDate, UnmarshalDateSlice, UnmarshalDateMap, UnmarshalDateMapSlice
- UnmarshalDateTime, UnmarshalDateTimeSlice, UnmarshalDateTimeMap, UnmarshalDateTimeMapSlice
- UnmarshalObject, UnmarshalObjectSlice
- UnmarshalAny, UnmarshalAnySlice, UnmarshalAnyMap, UnmarshalAnyMapSlice
These methods are no longer used by code emitted by the Go generator.  If you
have old generated Go code that still uses these methods, then you should continue
using version 4 of the Go core, or regenerate your SDK code using a new version of the
SDK generator.
  • Loading branch information
padamstx committed Jan 20, 2021
1 parent 6b9f6bd commit 37e6597
Show file tree
Hide file tree
Showing 55 changed files with 432 additions and 2,973 deletions.
23 changes: 11 additions & 12 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ current_version = 4.10.0
commit = True
message = Update version numbers from {current_version} -> {new_version} [skip ci]

[bumpversion:file:v4/core/version.go]
[bumpversion:file:v5/core/version.go]
search = __VERSION__ = "{current_version}"
replace = __VERSION__ = "{new_version}"

[bumpversion:file:v4/go.mod]
[bumpversion:file:README.md]
search = {current_version}
replace = {new_version}

[bumpversion:file:CONTRIBUTING.md]
parse = (?P<major>\d+)
serialize = {major}
search = module github.com/IBM/go-sdk-core/v{current_version}
replace = module github.com/IBM/go-sdk-core/v{new_version}
search = v{current_version}
replace = v{new_version}

[bumpversion:file:Makefile]
[bumpversion:file:Authentication.md]
parse = (?P<major>\d+)
serialize = {major}
search = VDIR=v{current_version}
replace = VDIR=v{new_version}

[bumpversion:file:README.md]
search = {current_version}
replace = {new_version}

search = v{current_version}
replace = v{new_version}
25 changes: 0 additions & 25 deletions .github/workflows/build.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/golangci-lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile to build go-sdk-core library

VDIR=v4
VDIR=v5

all: build test lint tidy

Expand Down
123 changes: 0 additions & 123 deletions v4/core/log.go

This file was deleted.

125 changes: 0 additions & 125 deletions v4/core/log_test.go

This file was deleted.

Loading

0 comments on commit 37e6597

Please sign in to comment.