Replace zaptest.NewLogger() with zap.L() #621

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-logger into master 2023-08-17 16:51:11 +00:00
Owner

Close #609

Semantic patch:

@@
@@
-import "go.uber.org/zap/zaptest"
+import "go.uber.org/zap"

-zaptest.NewLogger(t)
+zap.L()

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

Close #609 Semantic patch: ``` @@ @@ -import "go.uber.org/zap/zaptest" +import "go.uber.org/zap" -zaptest.NewLogger(t) +zap.L() ``` Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik added 1 commit 2023-08-17 12:51:02 +00:00
[#609] Replace zaptest.NewLogger() with zap.L()
All checks were successful
DCO action / DCO (pull_request) Successful in 2m18s
Vulncheck / Vulncheck (pull_request) Successful in 2m40s
Build / Build Components (1.20) (pull_request) Successful in 3m25s
Build / Build Components (1.21) (pull_request) Successful in 3m20s
Tests and linters / Staticcheck (pull_request) Successful in 3m44s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m5s
Tests and linters / Tests with -race (pull_request) Successful in 5m12s
Tests and linters / Tests (1.21) (pull_request) Successful in 16m31s
Tests and linters / Lint (pull_request) Successful in 20m15s
64660afd2e
Semantic patch:
```
@@
@@
-import "go.uber.org/zap/zaptest"
+import "go.uber.org/zap"

-zaptest.NewLogger(t)
+zap.L()
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik requested review from storage-core-committers 2023-08-17 12:51:07 +00:00
fyrchik requested review from storage-core-developers 2023-08-17 12:51:08 +00:00
fyrchik changed title from [#609] Replace zaptest.NewLogger() with zap.L() to Replace zaptest.NewLogger() with zap.L() 2023-08-17 12:51:57 +00:00
ale64bit approved these changes 2023-08-17 12:55:10 +00:00
ale64bit left a comment
Member

Semantic approval.

Semantic approval.
dkirillov approved these changes 2023-08-17 13:04:25 +00:00
acid-ant approved these changes 2023-08-17 13:51:57 +00:00
fyrchik merged commit f7042c5a6f into master 2023-08-17 16:51:11 +00:00
fyrchik deleted branch fix-logger 2023-08-17 16:51:12 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#621
No description provided.