Skip to content

Commit

Permalink
fix: Enable Teams notif for Win service monitor now works
Browse files Browse the repository at this point in the history
Fixes #758
  • Loading branch information
mountaindude committed Aug 21, 2023
1 parent 2165579 commit a0761cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/msteams_notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function getTeamsServiceMonitorNotificationConfig(serviceStatus) {
return false;
}

if (!globals.config.get('Butler.serviceMonitor.alertDestination.slack.enable')) {
if (!globals.config.get('Butler.serviceMonitor.alertDestination.teams.enable')) {
// Teams notifications are disabled
globals.logger.error(
"SERVICE MONITOR TEAMS: Service monitor Teams notifications are disabled in config file - won't send Teams message"
Expand Down Expand Up @@ -436,7 +436,7 @@ function sendReloadTaskFailureNotificationTeams(reloadParams) {
// Get script logs, if enabled in the config file
const scriptLogData = reloadParams.scriptLog;

// Reduce script log lines to only the ones we want to send to Slack
// Reduce script log lines to only the ones we want to send to Teams
scriptLogData.scriptLogHeadCount = globals.config.get('Butler.teamsNotification.reloadTaskFailure.headScriptLogLines');
scriptLogData.scriptLogTailCount = globals.config.get('Butler.teamsNotification.reloadTaskFailure.tailScriptLogLines');

Expand Down Expand Up @@ -569,7 +569,7 @@ function sendReloadTaskAbortedNotificationTeams(reloadParams) {
// Get script logs, if enabled in the config file
const scriptLogData = reloadParams.scriptLog;

// Reduce script log lines to only the ones we want to send to Slack
// Reduce script log lines to only the ones we want to send to Teams
scriptLogData.scriptLogHeadCount = globals.config.get('Butler.teamsNotification.reloadTaskAborted.headScriptLogLines');
scriptLogData.scriptLogTailCount = globals.config.get('Butler.teamsNotification.reloadTaskAborted.tailScriptLogLines');

Expand Down

0 comments on commit a0761cb

Please sign in to comment.