mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
add fallback hostname
This commit is contained in:
parent
f5b8136ce6
commit
4bdf0459bd
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ let maintowerClient = "1fepg2wdk-prod"
|
|||
if(process.env.MAINTOWER_OVERRIDE) maintowerClient = process.env.MAINTOWER_OVERRIDE
|
||||
|
||||
module.exports.formatErrorMessage = (sev = 0, code, content) => {
|
||||
return `${icon("webhook_exclaim_" + parseInt(sev))} \`[${Date.now()}]\` @ \`[${process.env.HOSTNAME}]\` **\` ${code} \`** | ${content}`
|
||||
return `${icon("webhook_exclaim_" + parseInt(sev))} \`[${Date.now()}]\` @ \`[${process.env.HOSTNAME || "labscore"}]\` **\` ${code} \`** | ${content}`
|
||||
}
|
||||
|
||||
module.exports.maintower = async function (packages, type){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue