Skip to content

Commit

Permalink
changed log msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
christof.strackSAG authored and christof.strackSAG committed Jul 3, 2020
1 parent fcca773 commit 1c4631f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function createServiceNowIncident(adata, tenant) {
//newIncident.description = `Source: <${src.self}|${src.name ? src.name : src.id}>`;
servicenowClient.createRecord('incident', newIncident, (res) => {
//use response
console.log(`[INFO] Id of created incident form ServiceNow: ${res}`);
console.log(`[INFO] For alarm: ${adata.id} ServiceNow incident was generated: ${res} at :` + new Date(Date.now()).toISOString());
});
}

Expand Down Expand Up @@ -63,7 +63,7 @@ async function updateAlarmFromIncident(adata) {
const partialUpdateAlarm = {
id: alarmId,
status: "CLEARED",
resolve_note: "Was resolve in ServiceNow at:" + new Date(Date.now()).toISOString()
resolve_note: "Was resolved in ServiceNow at:" + new Date(Date.now()).toISOString()
};
// Get filtered alarms and post a message to Slack
const {
Expand Down

0 comments on commit 1c4631f

Please sign in to comment.