Compare commits
2 Commits
6b8692e63a
...
c3f0050734
Author | SHA1 | Date | |
---|---|---|---|
c3f0050734 | |||
083f53179d |
@ -145,6 +145,7 @@
|
|||||||
"no-buffer-constructor": "warn",
|
"no-buffer-constructor": "warn",
|
||||||
"no-caller": "warn",
|
"no-caller": "warn",
|
||||||
"no-console": "warn",
|
"no-console": "warn",
|
||||||
|
"no-constant-binary-expression": "error",
|
||||||
"no-div-regex": "warn",
|
"no-div-regex": "warn",
|
||||||
"no-dupe-else-if": "warn",
|
"no-dupe-else-if": "warn",
|
||||||
"no-duplicate-imports": "warn",
|
"no-duplicate-imports": "warn",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@navy.gif/logger",
|
"name": "@navy.gif/logger",
|
||||||
"version": "2.4.3",
|
"version": "2.4.4",
|
||||||
"description": "Logging thing",
|
"description": "Logging thing",
|
||||||
"author": "Navy.gif",
|
"author": "Navy.gif",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -229,14 +229,17 @@ class MasterLogger implements Logger
|
|||||||
else
|
else
|
||||||
console.log(out); // eslint-disable-line no-console
|
console.log(out); // eslint-disable-line no-console
|
||||||
}
|
}
|
||||||
if ((broadcast || this.#_broadcastLevel <= this.#_logLevelMapping[type]) && this.#webhook)
|
if ((broadcast || (this.#_broadcastLevel <= this.#_logLevelMapping[type])) && this.#webhook)
|
||||||
{
|
{
|
||||||
const description = (subheader.length ? `**${subheader}**\n` : '') + `\`\`\`${text}\`\`\``;
|
const description = (subheader.length ? `**${subheader}**\n` : '') + `\`\`\`${text}\`\`\``;
|
||||||
this.#webhook.send({
|
this.#webhook.send({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: `[__${type.toUpperCase()}__] ${this._shard(shard)}`,
|
title: `[__${type.toUpperCase()}__] ${this._shard(shard)}`,
|
||||||
description,
|
description,
|
||||||
color: colour.int
|
color: colour.int,
|
||||||
|
footer: {
|
||||||
|
text: `ENV: ${process.env.NODE_ENV ?? 'production'}`
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user