Skip to content

Commit 61255f6

Browse files
🧹 Drop all debug logs for missing resource id logs. (#7074)
Signed-off-by: Preslav <preslav@mondoo.com>
1 parent dc89acd commit 61255f6

File tree

35 files changed

+5
-345
lines changed

35 files changed

+5
-345
lines changed

providers-sdk/v1/mqlr/lrcore/go.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ package resources
122122
import (
123123
"errors"%s
124124
125-
"github.com/rs/zerolog/log"
126125
"go.mondoo.com/mql/v13/llx"
127126
"go.mondoo.com/mql/v13/providers-sdk/v1/plugin"
128127
"go.mondoo.com/mql/v13/types"%s
@@ -191,9 +190,6 @@ func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawD
191190
192191
if res != nil {
193192
mqlId := res.MqlID()
194-
if mqlId == "" {
195-
log.Debug().Msgf("resource %s has no MQL ID defined, this is usually an issue with the resource, please open a GitHub issue at https://github.com/mondoohq/mql/issues", name)
196-
}
197193
id := name + "\x00" + mqlId
198194
if x, ok := runtime.Resources.Get(id); ok {
199195
return x, nil
@@ -211,9 +207,6 @@ func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawD
211207
}
212208
213209
mqlId := res.MqlID()
214-
if mqlId == "" {
215-
log.Debug().Msgf("resource %s has no MQL ID defined, this is usually an issue with the resource, please open a GitHub issue at https://github.com/mondoohq/mql/issues", name)
216-
}
217210
id := name + "\x00" + mqlId
218211
if x, ok := runtime.Resources.Get(id); ok {
219212
return x, nil
@@ -238,9 +231,6 @@ func CreateResource(runtime *plugin.Runtime, name string, args map[string]*llx.R
238231
}
239232
240233
mqlId := res.MqlID()
241-
if mqlId == "" {
242-
log.Debug().Msgf("resource %s has no MQL ID defined, this is usually an issue with the resource, please open a GitHub issue at https://github.com/mondoohq/mql/issues", name)
243-
}
244234
id := name + "\x00" + mqlId
245235
if x, ok := runtime.Resources.Get(id); ok {
246236
return x, nil

providers-sdk/v1/testutils/mockprovider/resources/mockprovider.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/ansible/resources/ansible.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/arista/resources/arista.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/atlassian/resources/atlassian.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/aws/resources/aws.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/azure/resources/azure.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/azure/resources/azure.permissions.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"provider": "azure",
33
"version": "13.3.0",
4-
"generated_at": "2026-03-27T23:23:56-07:00",
4+
"generated_at": "2026-03-30T22:13:12-07:00",
55
"permissions": [
66
"Microsoft.Advisor/recommendations/read",
77
"Microsoft.Authorization/roleAssignments/read",
@@ -254,7 +254,7 @@
254254
{
255255
"permission": "Microsoft.Network/applicationGateways/read",
256256
"service": "Microsoft.Network",
257-
"action": "Get",
257+
"action": "NewListAllPager",
258258
"source_file": "network.go"
259259
},
260260
{
@@ -266,7 +266,7 @@
266266
{
267267
"permission": "Microsoft.Network/azureFirewalls/read",
268268
"service": "Microsoft.Network",
269-
"action": "Get",
269+
"action": "NewListAllPager",
270270
"source_file": "network.go"
271271
},
272272
{
@@ -308,7 +308,7 @@
308308
{
309309
"permission": "Microsoft.Network/natGateways/read",
310310
"service": "Microsoft.Network",
311-
"action": "Get",
311+
"action": "NewListAllPager",
312312
"source_file": "network.go"
313313
},
314314
{
@@ -326,7 +326,7 @@
326326
{
327327
"permission": "Microsoft.Network/publicIPAddresses/read",
328328
"service": "Microsoft.Network",
329-
"action": "NewListAllPager",
329+
"action": "Get",
330330
"source_file": "network.go"
331331
},
332332
{

providers/cloudflare/resources/cloudflare.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/cloudformation/resources/cloudformation.lr.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)