Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
ADD metric event
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod committed Jan 3, 2022
1 parent f81bc32 commit b0c1c2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ LOOP:
for {
select {
case sig := <-sigs:
if c.Metrics.Enable {
(*m.Counters)["eventReceive"].Inc()
}
log.Info().Msg(sig.String())
break LOOP
}
Expand Down

0 comments on commit b0c1c2d

Please sign in to comment.