ch007m / backstage-backend-module

backstage-backend-module
0 stars 0 forks source link

POST request of the debug step not logged #2

Closed cmoulliard closed 6 months ago

cmoulliard commented 6 months ago

Issue

When we use the code of this project generated for backstage version 1.25.0, then the debug step is not logged

Normally, we should see the POST message as you can see hereafter

type=incomingRequest
2024-04-05T12:14:34.973Z rootHttpRouter info ::1 - - [05/Apr/2024:12:14:34 +0000] 
"POST /api/scaffolder/v2/tasks HTTP/1.1" 201 45 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" type=incomingRequest
info: {
  "message": "Q2hhcmxlcw=="
}
info: Q2hhcmxlcw==

but we got only the request about the template processed:

[1] 2024-04-08T08:27:50.092Z rootHttpRouter info ::1 - - [08/Apr/2024:08:27:50 +0000] "
GET /api/catalog/entities/by-name/template/default/dummy HTTP/1.1" 200 999 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" type=incomingRequest
[1] 2024-04-08T08:27:50.095Z rootHttpRouter info ::1 - - [08/Apr/2024:08:27:50 +0000] 
"GET /api/scaffolder/v2/templates/default/template/dummy/parameter-schema HTTP/1.1" 304 - "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" type=incomingRequest
...