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
No related branches found
No related tags found
No related merge requests found
...@@ -533,6 +533,7 @@ function apiWorkspaceEndpoints(app) { ...@@ -533,6 +533,7 @@ function apiWorkspaceEndpoints(app) {
}); });
response.status(200).json({ ...result }); response.status(200).json({ ...result });
} catch (e) { } catch (e) {
console.log(e.message, e);
response.status(500).json({ response.status(500).json({
id: uuidv4(), id: uuidv4(),
type: "abort", type: "abort",
...@@ -655,7 +656,7 @@ function apiWorkspaceEndpoints(app) { ...@@ -655,7 +656,7 @@ function apiWorkspaceEndpoints(app) {
}); });
response.end(); response.end();
} catch (e) { } catch (e) {
console.error(e); console.log(e.message, e);
writeResponseChunk(response, { writeResponseChunk(response, {
id: uuidv4(), id: uuidv4(),
type: "abort", type: "abort",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment