- querylogs: GET /control/querylog: "service_name" field wasn't set
Squashed commit of the following: commit a6571d483c8b5af6c051fb2fc08661d609a4e3d0 Author: Simon Zolin <s.zolin@adguard.com> Date: Tue Sep 22 17:27:54 2020 +0300 - querylogs: GET /control/querylog: "service_name" field wasn't set
This commit is contained in:
parent
756f97ede1
commit
1d36abd11a
|
@ -1423,6 +1423,7 @@ When a new DNS request is received and processed, we store information about thi
|
|||
"Reason":3,
|
||||
"Rule":"...",
|
||||
"FilterID":1,
|
||||
"ServiceName":"..."
|
||||
},
|
||||
"Elapsed":12345,
|
||||
"Upstream":"...",
|
||||
|
|
|
@ -56,6 +56,8 @@ func decodeLogEntry(ent *logEntry, str string) {
|
|||
case "Reason":
|
||||
i, err = strconv.Atoi(v)
|
||||
ent.Result.Reason = dnsfilter.Reason(i)
|
||||
case "ServiceName":
|
||||
ent.Result.ServiceName = v
|
||||
|
||||
case "Upstream":
|
||||
ent.Upstream = v
|
||||
|
|
Loading…
Reference in New Issue