Skip to content

Commit

Permalink
Load the config file always (#498)
Browse files Browse the repository at this point in the history
* Always load the config file

* Update changelog.md
  • Loading branch information
waybackarchiver authored Mar 28, 2024
1 parent d603da5 commit 138dd74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/wayback/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 138dd74

Please sign in to comment.