Skip to content

Commit

Permalink
(chore) adding global process ID
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed Dec 2, 2015
1 parent 91082bb commit 595bcdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kong/core/reports.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local function send_ping(premature)
if elapsed and elapsed == 0 then
local reqs = cache.get(cache.requests_key())
if not reqs then reqs = 0 end
syslog.log({signal = "ping", requests=reqs})
syslog.log({signal = "ping", requests=reqs, process_id=process_id})
cache.incr(cache.requests_key(), -reqs) -- Reset counter
end
create_timer(INTERVAL, send_ping)
Expand Down
1 change: 1 addition & 0 deletions kong/kong.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function Kong.init()
configuration = config_loader.load(os.getenv("KONG_CONF"))
dao = dao_loader.load(configuration)
loaded_plugins = load_node_plugins(configuration)
process_id = utils.random_string()
ngx.update_time()
end

Expand Down

0 comments on commit 595bcdb

Please sign in to comment.