mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 09:03:12 +00:00
add logging on more api endpoints for exceptions
This commit is contained in:
parent
381bdf0b61
commit
7c6c272051
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue