Skip to content

Commit

Permalink
some refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya committed Oct 28, 2020
1 parent 9e7f550 commit f3ab714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func init() {
rootCmd.PersistentFlags().StringVarP(&configWatchTimeout, "configwatchtimeout", "w", "5s", "config watch period")
rootCmd.PersistentFlags().StringVarP(&configFormat, "configformat", "f", "yaml", "config file format")
rootCmd.PersistentFlags().StringVarP(&logFormat, "logformat", "l", "text", "log format: text/json")
rootCmd.PersistentFlags().StringVarP(&debugLevel, "debugLevel", "D", "info", "Debug level: Debug,Info,Warn,Error,Fatal,Panic")
rootCmd.PersistentFlags().StringVarP(&debugLevel, "debugLevel", "D", "error", "Debug level: Debug,Info,Warn,Error,Fatal,Panic")
rootCmd.PersistentFlags().BoolVarP(&botsEnabled, "bots", "b", true, "start listening messenger bots")

rootCmd.AddCommand(genToken)
Expand Down
2 changes: 1 addition & 1 deletion projects/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (p *Project) ProjectAlert(e error) {
message = mention + " " + message
}
}
if p.IsLoud() && status.MainStatus != "quiet" {
if p.IsLoud() && status.IsLoud() {
p.Send(message)
}
}
Expand Down

0 comments on commit f3ab714

Please sign in to comment.