Skip to content

Commit 5953858

Browse files
Extend logger name replacer
Replace all fsc packages with `fsc` prefix. Signed-off-by: Marcus Brandenburger <[email protected]>
1 parent d7862c1 commit 5953858

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

platform/common/services/logging/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func OtelSanitize() bool {
6565
var (
6666
replacersMutex sync.RWMutex
6767
replacers = map[string]string{
68-
"github.com.hyperledger-labs.fabric-smart-client.platform": "fsc",
68+
"github.com.hyperledger-labs.fabric-smart-client": "fsc",
6969
}
7070
)
7171

platform/common/services/logging/testlogger/logger_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestMustGetLogger_WithParams(t *testing.T) {
1919

2020
name := l.Zap().Name()
2121

22-
Expect(name).To(HaveSuffix("fsc.common.services.logging.testlogger_test.some.thing"))
22+
Expect(name).To(HaveSuffix("fsc.platform.common.services.logging.testlogger_test.some.thing"))
2323
}
2424

2525
func TestMustGetLogger_WithOutParams(t *testing.T) {
@@ -28,7 +28,7 @@ func TestMustGetLogger_WithOutParams(t *testing.T) {
2828

2929
name := l.Zap().Name()
3030

31-
Expect(name).To(HaveSuffix("fsc.common.services.logging.testlogger_test"))
31+
Expect(name).To(HaveSuffix("fsc.platform.common.services.logging.testlogger_test"))
3232
}
3333

3434
func level1() (string, error) {

0 commit comments

Comments
 (0)