diff --git a/cmd/wayback/main.go b/cmd/wayback/main.go index 6887ad5f..4a0fe877 100644 --- a/cmd/wayback/main.go +++ b/cmd/wayback/main.go @@ -164,11 +164,8 @@ func run(cmd *cobra.Command, args []string) { parser := config.NewParser() var opts *config.Options - if len(daemon) > 0 { - logger.Info("Run wayback using configuration file") - if _, err = parser.ParseFile(configFile); err != nil { - logger.Fatal("Parse configuration file failed, error: %v", err) - } + if _, err = parser.ParseFile(configFile); err != nil { + logger.Fatal("Parse configuration file failed, error: %v", err) } if opts, err = parser.ParseEnvironmentVariables(); err != nil { diff --git a/docs/changelog.md b/docs/changelog.md index cff533df..75b93149 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -32,6 +32,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fallback to non-TLS server - Styling IRC message +### Fixed +- Load the config file always ([#498](https://github.com/wabarc/wayback/pull/498)) + ## [0.19.1] - 2023-03-21 ### Fixed