File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"log/slog"
7
7
8
+ "github.com/gzuidhof/flipper/buildinfo"
8
9
"github.com/gzuidhof/flipper/config/cfgmodel"
9
10
"github.com/gzuidhof/flipper/notification"
10
11
"github.com/gzuidhof/flipper/notification/notificationtemplate"
@@ -97,9 +98,15 @@ func (g *Group) Start(ctx context.Context) error {
97
98
ctx , cancel := context .WithCancel (ctx )
98
99
defer cancel ()
99
100
100
- _ = g .notifier .Notify (ctx ,
101
- fmt .Sprintf (":eyes: Starting monitor for group **%s** (`%s`)." , g .cfg .DisplayName , g .cfg .ID ),
102
- )
101
+ msg := fmt .Sprintf (":eyes: Starting monitor for group **%s** (`%s`). Flipper version `%s`. " ,
102
+ g .cfg .DisplayName , g .cfg .ID , buildinfo .Version ())
103
+
104
+ if g .cfg .ReadOnly {
105
+ msg += "\n :lock: **Read-only mode** enabled, no actions will be taken. Only unhealthy/healthy notifications" +
106
+ "will be sent."
107
+ }
108
+
109
+ _ = g .notifier .Notify (ctx , msg )
103
110
104
111
updateChan := make (chan ResourceUpdate , 16 )
105
112
errChan := make (chan error , 16 )
You can’t perform that action at this time.
0 commit comments