mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-11 01:10:11 +01:00
add logging on more api endpoints for exceptions
This commit is contained in:
parent
381bdf0b61
commit
7c6c272051
@ -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) {
|
|||||||
});
|
});
|
||||||
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user