Fix a bug in logging (file output) at scan command

Log of localhost was not output to file. #301
This commit is contained in:
Kota Kanbe
2017-01-26 17:13:34 +09:00
parent 883fe13756
commit 5a10e5c9ff

View File

@@ -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