Skip to content

Commit

Permalink
Merge pull request #23344 from wazuh/fix/23329-azure-log-tag-spam
Browse files Browse the repository at this point in the history
Change log level when tag not defined in Azure configuration
  • Loading branch information
Selutario committed May 10, 2024
2 parents 1e51c2d + 4f6b940 commit 9709e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/wmodules-azure.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ int wm_azure_request_read(XML_NODE nodes, wm_azure_request_t * request, unsigned

/* Validation process */
if (!request->tag) {
minfo("At module '%s': No request tag defined. Setting it randomly...", WM_AZURE_CONTEXT.name);
mdebug2("At module '%s': No request tag defined. Setting it randomly...", WM_AZURE_CONTEXT.name);
int random_id = os_random();
char * rtag;

Expand Down Expand Up @@ -475,7 +475,7 @@ int wm_azure_storage_read(const OS_XML *xml, XML_NODE nodes, wm_azure_storage_t
}

if (!storage->tag) {
minfo("At module '%s': No storage tag defined. Setting it randomly...", WM_AZURE_CONTEXT.name);
mdebug2("At module '%s': No storage tag defined. Setting it randomly...", WM_AZURE_CONTEXT.name);
int random_id = os_random();
char * rtag;

Expand Down

0 comments on commit 9709e57

Please sign in to comment.