Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion centreon-certified/datadog/datadog-events-apiv2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function EventQueue:send_data(payload)
end

self.sc_logger:info("[EventQueue:send_data]: Going to send the following json " .. tostring(payload))
self.sc_logger:info("[EventQueue:send_data]: Pagerduty address is: " .. tostring(url))
self.sc_logger:info("[EventQueue:send_data]: Datadog address is: " .. tostring(url))

local http_response_body = ""
local http_request = curl.easy()
Expand Down
4 changes: 2 additions & 2 deletions centreon-certified/datadog/datadog-metrics-apiv2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function EventQueue.new(params)

-- set up log configuration
local logfile = params.logfile or "/var/log/centreon-broker/datadog-metrics.log"
local log_level = params.log_level or 3
local log_level = params.log_level or 1

-- initiate mandatory objects
self.sc_logger = sc_logger.new(logfile, log_level)
Expand Down Expand Up @@ -268,7 +268,7 @@ function EventQueue:send_data(payload)
end

self.sc_logger:info("[EventQueue:send_data]: Going to send the following json " .. tostring(payload_json))
self.sc_logger:info("[EventQueue:send_data]: Pagerduty address is: " .. tostring(url))
self.sc_logger:info("[EventQueue:send_data]: Datadog address is: " .. tostring(url))

local http_response_body = ""
local http_request = curl.easy()
Expand Down
Loading