feat(cli): support fine-grained server log filtering (#8748)

This commit is contained in:
Ammar Bandukwala
2023-07-26 16:46:22 -05:00
committed by GitHub
parent 4e9e480cc6
commit 25e30c6f41
16 changed files with 148 additions and 60 deletions
+6
View File
@@ -8304,6 +8304,12 @@ const docTemplate = `{
"json": {
"type": "string"
},
"log_filter": {
"type": "array",
"items": {
"type": "string"
}
},
"stackdriver": {
"type": "string"
}
+6
View File
@@ -7448,6 +7448,12 @@
"json": {
"type": "string"
},
"log_filter": {
"type": "array",
"items": {
"type": "string"
}
},
"stackdriver": {
"type": "string"
}
+1 -1
View File
@@ -691,7 +691,7 @@ func (api *API) _dialWorkspaceAgentTailnet(agentID uuid.UUID) (*codersdk.Workspa
conn, err := tailnet.NewConn(&tailnet.Options{
Addresses: []netip.Prefix{netip.PrefixFrom(tailnet.IP(), 128)},
DERPMap: api.DERPMap(),
Logger: api.Logger.Named("tailnet"),
Logger: api.Logger.Named("net.tailnet"),
BlockEndpoints: api.DeploymentValues.DERP.Config.BlockDirect.Value(),
})
if err != nil {