Skip to content

Commit dd087ff

Browse files
bborehamtomwilkie
authored andcommitted
Fix calls to Log() from Alertmanager mesh (#1542)
Log() requires that arguments are name-value pairs. Signed-off-by: Bryan Boreham <[email protected]>
1 parent 89116fc commit dd087ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/alertmanager/mesh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type promLog struct{}
3838

3939
// Printf implements the mesh.Logger interface.
4040
func (p promLog) Printf(format string, args ...interface{}) {
41-
level.Info(util.Logger).Log(fmt.Sprintf(format, args...))
41+
level.Info(util.Logger).Log("msg", fmt.Sprintf(format, args...))
4242
}
4343

4444
func initMesh(addr, hwaddr, nickname, pw string) *mesh.Router {

0 commit comments

Comments
 (0)