Projects STRLCPY metabigor Commits 92d2d232
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    cmd/root.go
    skipped 47 lines
    48 48   if options.Debug {
    49 49   options.Verbose = true
    50 50   }
    51  - core.InitLog(options)
     51 + core.InitLog(&options)
    52 52   // planned feature
    53 53   // if !core.FileExists(options.ConfigFile) {
    54 54   // core.InitConfig(options)
    skipped 29 lines
  • ■ ■ ■ ■ ■ ■
    core/common.go
    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
Please wait...
Page is in error, reload to recover