Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AitorAlgorta committed Feb 14, 2024
1 parent f98f9e6 commit 622dfa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/components/schema-registry-manager/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ app.post('/schemas.update', (req: Request, res: Response) => {
res.status(400).send('Missing topicName');
return;
}

console.log(req.body);

if (!req.body.schema) {
res.status(400).send('Missing schema');
return;
Expand Down Expand Up @@ -220,7 +223,6 @@ app.get('/schemas.lastMessage', (req: Request, res: Response) => {
case SchemaProvider.karapace:
getLastMessage(req.query.topicName as string)
.then((response: any) => {
console.log(response);
res.status(200).send(response);
})
.catch((e: any) => {
Expand Down

0 comments on commit 622dfa7

Please sign in to comment.