Skip to content

Commit f16a5b8

Browse files
committed
Call updateMonitoringMetrics in ApplyLoggingPlugins
Keep both results the same.
1 parent 5c5b44c commit f16a5b8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dnscrypt-proxy/plugins.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,5 +403,7 @@ func (pluginsState *PluginsState) ApplyLoggingPlugins(pluginsGlobals *PluginsGlo
403403
return err
404404
}
405405
}
406+
// Update monitoring metrics
407+
updateMonitoringMetrics(proxy, &pluginsState)
406408
return nil
407409
}

dnscrypt-proxy/proxy.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,9 +818,6 @@ func (proxy *Proxy) processIncomingQuery(
818818
// Apply logging plugins
819819
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)
820820

821-
// Update monitoring metrics
822-
updateMonitoringMetrics(proxy, &pluginsState)
823-
824821
return response
825822
}
826823

0 commit comments

Comments
 (0)