Skip to content

Commit

Permalink
Merge pull request Kong#2405 from Mashape/chore/reports
Browse files Browse the repository at this point in the history
chore(reports) updating address
  • Loading branch information
subnetmarco authored Apr 25, 2017
2 parents 278f211 + a0cc3e0 commit 2cf1ebf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kong/cmd/utils/prefix_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ local function compile_conf(kong_config, conf_template)
tostring = tostring
}

if kong_config.anonymous_reports and socket.dns.toip(constants.SYSLOG.ADDRESS) then
if kong_config.anonymous_reports and socket.dns.toip(constants.REPORTS.ADDRESS) then
compile_env["syslog_reports"] = fmt("error_log syslog:server=%s:%d error;",
constants.SYSLOG.ADDRESS, constants.SYSLOG.PORT)
constants.REPORTS.ADDRESS, constants.REPORTS.SYSLOG_PORT)
end
if kong_config.nginx_optimizations then
local infos, err = gather_system_infos()
Expand Down
5 changes: 3 additions & 2 deletions kong/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ return {
"year"
}
},
SYSLOG = {
REPORTS = {
ADDRESS = "kong-hf.mashape.com",
PORT = 61828
SYSLOG_PORT = 61828,
STATS_PORT = 61829
},
CACHE = {
CLUSTER = "cluster"
Expand Down
4 changes: 2 additions & 2 deletions kong/core/reports.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ local function send_report(signal_type, t, host, port)
end

t = t or {}
host = host or constants.SYSLOG.ADDRESS
port = port or constants.SYSLOG.PORT
host = host or constants.REPORTS.ADDRESS
port = port or constants.REPORTS.STATS_PORT

-- add signal type to data

Expand Down

0 comments on commit 2cf1ebf

Please sign in to comment.