File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ func handleProbeRequest(w http.ResponseWriter, r *http.Request) {
89
89
90
90
resultTotalRecords := 0
91
91
for _ , workspaceId := range opts .Loganalytics .Workspace {
92
+ workspaceLogger := contextLogger .WithField ("workspaceId" , workspaceId )
93
+
92
94
// Set options
93
95
workspaces := []string {}
94
96
queryBody := operationalinsights.QueryBody {
@@ -135,9 +137,9 @@ func handleProbeRequest(w http.ResponseWriter, r *http.Request) {
135
137
}
136
138
}
137
139
138
- contextLogger .Debug ("metrics parsed" )
140
+ workspaceLogger .Debug ("metrics parsed" )
139
141
} else {
140
- contextLogger .Errorln (queryErr .Error ())
142
+ workspaceLogger .Errorln (queryErr .Error ())
141
143
http .Error (w , queryErr .Error (), http .StatusBadRequest )
142
144
return
143
145
}
You can’t perform that action at this time.
0 commit comments