feat: structured logging (JSON) (#5118)

This commit is contained in:
Cassandra 2024-09-24 11:51:21 +02:00 committed by GitHub
parent dd75890364
commit b287a25de7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 186 additions and 239 deletions

View file

@ -1,7 +1,7 @@
const NotificationProvider = require("./notification-provider");
const axios = require("axios");
const { setting } = require("../util-server");
const { getMonitorRelativeURL } = require("../../src/util");
const { Settings } = require("../settings");
class Stackfield extends NotificationProvider {
name = "stackfield";
@ -23,7 +23,7 @@ class Stackfield extends NotificationProvider {
textMsg += `\n${msg}`;
const baseURL = await setting("primaryBaseURL");
const baseURL = await Settings.get("primaryBaseURL");
if (baseURL) {
textMsg += `\n${baseURL + getMonitorRelativeURL(monitorJSON.id)}`;
}