Closed kiwiidb closed 1 year ago
Merging #367 (cd7ee1c) into main (db74659) will decrease coverage by
0.07%
. The diff coverage is0.00%
.
@@ Coverage Diff @@
## main #367 +/- ##
==========================================
- Coverage 54.79% 54.72% -0.07%
==========================================
Files 51 51
Lines 3190 3194 +4
==========================================
Hits 1748 1748
- Misses 1256 1260 +4
Partials 186 186
Impacted Files | Coverage Δ | |
---|---|---|
legacy_endpoints.go | 0.00% <0.00%> (ø) |
|
main.go | 0.00% <0.00%> (ø) |
|
v2_endpoints.go | 0.00% <0.00%> (ø) |
Replaces #361
Creates the log middleware with an Enricher and injects it after the JWT middleware. There is some code duplication because of the secured/unsecured API groups, but all in all I think it's ok.
As an example, when trying to pay a misformed invoice
Log output before (no seperate UserID field):
Log output after (
UserID
JSON field both in the request log and the error log):