@@ -52,16 +52,12 @@ func Load(workingDir string, debug bool) (*Config, error) {
52 cfg.Options.Debug = true
52 cfg.Options.Debug = true
55− // Init logs
55+ // Setup logs
56− log.Init(
56+ log.Setup(
57 filepath.Join(cfg.Options.DataDirectory, "logs", fmt.Sprintf("%s.log", appName)),
57 filepath.Join(cfg.Options.DataDirectory, "logs", fmt.Sprintf("%s.log", appName)),
58 cfg.Options.Debug,
58 cfg.Options.Debug,
62− return nil, fmt.Errorf("failed to load config: %w", err)
65 // Load known providers, this loads the config from fur
61 // Load known providers, this loads the config from fur
66 providers, err := LoadProviders(client.New())
62 providers, err := LoadProviders(client.New())
67 if err != nil || len(providers) == 0 {
63 if err != nil || len(providers) == 0 {