Skip to content

Commit

Permalink
chore(cli) removing sensitive PRNG seed log (Kong#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco authored Feb 22, 2017
1 parent d512aa0 commit f84b977
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kong/cmd/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require("kong.core.globalpatches")({cli = true})

local prng_seed = math.randomseed()
math.randomseed() -- Generate PRNG seed

local pl_app = require "pl.lapp"
local log = require "kong.cmd.utils.log"
Expand Down Expand Up @@ -84,7 +84,6 @@ return function(args)
log.debug("ngx_lua: %s", ngx.config.ngx_lua_version)
log.debug("nginx: %s", ngx.config.nginx_version)
log.debug("Lua: %s", jit and jit.version or _VERSION)
log.debug("PRNG seed: %d", prng_seed)

xpcall(function() cmd_exec(args) end, function(err)
if not (args.v or args.vv) then
Expand Down

0 comments on commit f84b977

Please sign in to comment.