fix(interception): ensure metrics are stopped on failed module start
This commit is contained in:
@@ -73,6 +73,7 @@ func start() error {
|
||||
if err != nil {
|
||||
log.Errorf("interception: failed to start module: %q", err)
|
||||
log.Debug("interception: cleaning up after failed start...")
|
||||
metrics.stop()
|
||||
if e := stopInterception(); e != nil {
|
||||
log.Debugf("interception: error cleaning up after failed start: %q", e.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user