Spaces:
Runtime error
Runtime error
Download src/config/error.config.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/config/error.config.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api@refs/pr/1/src/config/error.config.ts
-
curl -L -o error.config.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/config/error.config.ts
498 Bytes
| import { Logger } from './logger.config'; | |
| export function onUnexpectedError() { | |
| process.on('uncaughtException', (error, origin) => { | |
| const logger = new Logger('uncaughtException'); | |
| logger.error({ | |
| origin, | |
| stderr: process.stderr.fd, | |
| error, | |
| }); | |
| }); | |
| process.on('unhandledRejection', (error, origin) => { | |
| const logger = new Logger('unhandledRejection'); | |
| logger.error({ | |
| origin, | |
| stderr: process.stderr.fd, | |
| }); | |
| logger.error(error); | |
| }); | |
| } | |