From 5a10e5c9ff72ab45623bcc7965cf9ac7467d4c42 Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Thu, 26 Jan 2017 17:13:34 +0900 Subject: [PATCH] Fix a bug in logging (file output) at scan command Log of localhost was not output to file. #301 --- commands/scan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/scan.go b/commands/scan.go index 3fed745863..f9d30ba116 100644 --- a/commands/scan.go +++ b/commands/scan.go @@ -195,10 +195,10 @@ func (p *ScanCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) logrus.Debugf("%s", pp.Sprintf("%v", target)) // logger + c.Conf.LogDir = p.logDir Log := util.NewCustomLogger(c.ServerInfo{}) c.Conf.ResultsDir = p.resultsDir - c.Conf.LogDir = p.logDir c.Conf.CacheDBPath = p.cacheDBPath c.Conf.SSHExternal = p.sshExternal c.Conf.HTTPProxy = p.httpProxy