mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
Only alert via Discorn on logs that opt into alerting
This commit is contained in:
parent
750f28580a
commit
607f1ad10c
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,10 @@ class DiscordWinstonTransport extends Transport {
|
|||
}
|
||||
|
||||
async log(info, callback) {
|
||||
const { message, ...rest } = info;
|
||||
const { message, alert, ...rest } = info;
|
||||
if (!alert) {
|
||||
return;
|
||||
}
|
||||
let dataString = null;
|
||||
try {
|
||||
dataString = JSON.stringify(rest, null, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue