Skip to content

Commit

Permalink
add logging on more api endpoints for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat committed May 16, 2024
1 parent 381bdf0 commit 7c6c272
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/endpoints/api/workspace/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ function apiWorkspaceEndpoints(app) {
});
response.status(200).json({ ...result });
} catch (e) {
console.log(e.message, e);
response.status(500).json({
id: uuidv4(),
type: "abort",
Expand Down Expand Up @@ -655,7 +656,7 @@ function apiWorkspaceEndpoints(app) {
});
response.end();
} catch (e) {
console.error(e);
console.log(e.message, e);
writeResponseChunk(response, {
id: uuidv4(),
type: "abort",
Expand Down

0 comments on commit 7c6c272

Please sign in to comment.