Dump to console the error data associated with logger error calls.

This commit is contained in:
yumeko 2023-07-22 22:12:52 +03:00
parent c50d4b0f6e
commit 19311e683c
No known key found for this signature in database
GPG Key ID: 31A48AD2758B1B53

View File

@ -115,6 +115,10 @@ export default class Logger {
console.log(important ? chalk.bold(log) : log); console.log(important ? chalk.bold(log) : log);
if (level === "error" && data !== null) {
console.log(data);
}
if (store) { if (store) {
if (this.syslogClient) { if (this.syslogClient) {
const send = const send =