fix(interception): ensure metrics are stopped on failed module start

This commit is contained in:
Alexandr Stelnykovych
2025-11-12 14:24:24 +02:00
parent 14be84d2d0
commit 063fa7f115

View File

@@ -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())
}