Skip to content

Commit

Permalink
Always parse config file under daemon mode (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver authored Dec 28, 2022
1 parent e5d4b03 commit 061c62b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Create deployment instructions for Render ([#236](https://github.com/wabarc/wayback/pull/236))
- Specify dependencies for the distribution package ([#243](https://github.com/wabarc/wayback/pull/243))
- Make media downloads are domain-specific ([#247](https://github.com/wabarc/wayback/pull/247))
- Always parse config file under daemon mode ([#271](https://github.com/wabarc/wayback/pull/271))
- Response uppercase letter for health check ([#292](https://github.com/wabarc/wayback/pull/292))
- Stores artifacts via screenshot ([#293](https://github.com/wabarc/wayback/pull/293))
- Improve signal handling ([#294](https://github.com/wabarc/wayback/pull/294))
Expand Down
6 changes: 2 additions & 4 deletions cmd/wayback/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,8 @@ func handle(cmd *cobra.Command, args []string) {
setToEnv(cmd)
parser := config.NewParser()

if configFile != "" {
if len(daemon) > 0 {
logger.Info("Run wayback using configuration file")
}
if len(daemon) > 0 {
logger.Info("Run wayback using configuration file")
if config.Opts, err = parser.ParseFile(configFile); err != nil {
logger.Fatal("Parse configuration file failed, error: %v", err)
}
Expand Down

0 comments on commit 061c62b

Please sign in to comment.