| skipped 15 lines |
16 | 16 | | var logger = logrus.New() |
17 | 17 | | |
18 | 18 | | // InitLog init log |
19 | | - | func InitLog(options Options) { |
20 | | - | logDir := options.Scan.TmpOutput |
21 | | - | if logDir == "" { |
| 19 | + | func InitLog(options *Options) { |
| 20 | + | if options.Scan.TmpOutput == "" { |
22 | 21 | | options.Scan.TmpOutput = path.Join(os.TempDir(), "mtg-log") |
23 | 22 | | } |
24 | | - | |
25 | 23 | | if !FolderExists(options.Scan.TmpOutput) { |
26 | 24 | | os.MkdirAll(options.Scan.TmpOutput, 0755) |
27 | 25 | | } |
| skipped 64 lines |