Skip to content

Commit

Permalink
Add a debug log statement when enabling dev flags (#6306)
Browse files Browse the repository at this point in the history
* Add a debug log statement when enabling dev flags
* Merge refs/heads/master into add-dbg-log-for-dev-flags
  • Loading branch information
prestonvanloon committed Jun 18, 2020
1 parent addc389 commit 6926592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shared/featureconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ func ConfigureValidator(ctx *cli.Context) {
func enableDevModeFlags(ctx *cli.Context) {
log.Warn("Enabling development mode flags")
for _, f := range devModeFlags {
log.WithField("flag", f.Names()[0]).Debug("Enabling development mode flag")
if !ctx.IsSet(f.Names()[0]) {
if err := ctx.Set(f.Names()[0], "true"); err != nil {
log.WithError(err).Debug("Error enabling development mode flag")
Expand Down

0 comments on commit 6926592

Please sign in to comment.