1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

config: load config file only on first access (closes #1659, closes #2096) (#2147)

This commit is contained in:
Stefan
2018-03-17 12:36:30 +01:00
committed by GitHub
parent e62fe06763
commit 86892467d9
5 changed files with 98 additions and 52 deletions

View File

@@ -22,7 +22,6 @@ import (
"github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fs/accounting"
"github.com/ncw/rclone/fs/config"
"github.com/ncw/rclone/fs/config/configflags"
"github.com/ncw/rclone/fs/config/flags"
"github.com/ncw/rclone/fs/filter"
@@ -373,9 +372,6 @@ func initConfig() {
// Finish parsing any command line flags
configflags.SetFlags()
// Load the rest of the config now we have started the logger
config.LoadConfig()
// Load filters
var err error
filter.Active, err = filter.NewFilter(&filterflags.Opt)