updated logs

This commit is contained in:
rafaelsideguide
2024-07-25 09:48:06 -03:00
parent 6208ecdbc0
commit 309728a482
28 changed files with 100 additions and 64 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import axios from "axios";
import { Logger } from "../../../src/lib/logger";
export async function sendSlackWebhook(
message: string,
@@ -16,8 +17,8 @@ export async function sendSlackWebhook(
"Content-Type": "application/json",
},
});
console.log("Webhook sent successfully:", response.data);
Logger.log("Webhook sent successfully:", response.data);
} catch (error) {
console.error("Error sending webhook:", error);
Logger.error(`Error sending webhook: ${error}`);
}
}