Skip to content

Commit 61b69d5

Browse files
committed
Call updateMonitoringMetrics following all ApplyLoggingPlugins
1 parent b01ce77 commit 61b69d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dnscrypt-proxy/proxy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ func (proxy *Proxy) processIncomingQuery(
744744
if pluginsState.action == PluginsActionDrop {
745745
pluginsState.returnCode = PluginsReturnCodeDrop
746746
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)
747+
updateMonitoringMetrics(proxy, &pluginsState)
747748
return response
748749
}
749750

@@ -806,6 +807,7 @@ func (proxy *Proxy) processIncomingQuery(
806807
pluginsState.returnCode = PluginsReturnCodeParseError
807808
}
808809
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)
810+
updateMonitoringMetrics(proxy, &pluginsState)
809811
if serverInfo != nil {
810812
serverInfo.noticeFailure(proxy)
811813
}

0 commit comments

Comments
 (0)