Skip to content
Snippets Groups Projects
Commit 7c6c2720 authored by timothycarambat's avatar timothycarambat
Browse files

add logging on more api endpoints for exceptions

parent 381bdf0b
Branches
Tags
No related merge requests found
......@@ -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",
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment