feat: move module path to git.unbound.se (#41)
logging / coverage-baseline (push) Successful in 55s
Unbound Release / Check Preconditions (push) Successful in 1s
Unbound Release / Create Tag (push) Skipped
logging / test (push) Skipped
logging / vulnerabilities (push) Skipped
pre-commit / pre-commit (push) Skipped
Unbound Release / Generate Changelog and Handle PR (push) Successful in 25s
Unbound Release / Create Release (push) Successful in 15s
Release / release (push) Successful in 12m43s
logging / coverage-baseline (push) Successful in 55s
Unbound Release / Check Preconditions (push) Successful in 1s
Unbound Release / Create Tag (push) Skipped
logging / test (push) Skipped
logging / vulnerabilities (push) Skipped
pre-commit / pre-commit (push) Skipped
Unbound Release / Generate Changelog and Handle PR (push) Successful in 25s
Unbound Release / Create Release (push) Successful in 15s
Release / release (push) Successful in 12m43s
This commit was merged in pull request #41.
This commit is contained in:
1 parent
acd75e1cac
commit
24faec7583
3 files changed
+5
-5
No files matched your search
@@ -23,7 +23,7 @@ repos:
|
|||||||
- id: go-imports
|
- id: go-imports
|
||||||
args:
|
args:
|
||||||
- -local
|
- -local
|
||||||
- gitea.unbound.se/shiny/logging
|
- git.unbound.se/shiny/logging
|
||||||
- repo: https://github.com/lietu/go-pre-commit
|
- repo: https://github.com/lietu/go-pre-commit
|
||||||
rev: v1.0.0
|
rev: v1.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ drift) into every backend service.
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"gitea.unbound.se/shiny/logging"
|
"git.unbound.se/shiny/logging"
|
||||||
logmw "gitea.unbound.se/shiny/logging/middleware"
|
logmw "git.unbound.se/shiny/logging/middleware"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Configure the slog default logger (format: text | json | otel).
|
// Configure the slog default logger (format: text | json | otel).
|
||||||
@@ -38,7 +38,7 @@ handler = logmw.RequestLogger(logger)(handler)
|
|||||||
In tests:
|
In tests:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import logtest "gitea.unbound.se/shiny/logging/logtest"
|
import logtest "git.unbound.se/shiny/logging/logtest"
|
||||||
|
|
||||||
m := logtest.NewMockLogger()
|
m := logtest.NewMockLogger()
|
||||||
// ... exercise code with m.Logger() ...
|
// ... exercise code with m.Logger() ...
|
||||||
|
|||||||
Reference in new issue
Block a user