Skip to content

Commit

Permalink
chore(reports) updating address
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed Apr 18, 2017
1 parent d1192b3 commit a0cc3e0
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 a0cc3e0

Please sign in to comment.