Skip to content

Commit b5709e6

Browse files
InterLinked1Friendly Automation
authored andcommitted
cdr_adaptive_odbc: Prevent filter warnings
Previously, if CDR filters were used so that not all CDR records used all sections defined in cdr_adaptive_odbc.conf, then warnings will always be emitted (if each CDR record is unique to a particular section, n-1 warnings to be specific). This turns the offending warning log into a verbose message like the other one, since this behavior is intentional and not indicative of anything wrong. ASTERISK-29494 Change-Id: Ifd314fa9298722bc99494d5ca2658a5caa94a5f8
1 parent 0e023e6 commit b5709e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cdr/cdr_adaptive_odbc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ static int odbc_log(struct ast_cdr *cdr)
740740
} else if (entry->filtervalue
741741
&& ((!entry->negatefiltervalue && entry->filtervalue[0] != '\0')
742742
|| (entry->negatefiltervalue && entry->filtervalue[0] == '\0'))) {
743-
ast_log(AST_LOG_WARNING, "CDR column '%s' was not set and does not match filter of"
743+
ast_verb(4, "CDR column '%s' was not set and does not match filter of"
744744
" %s'%s'. Cancelling this CDR.\n",
745745
entry->cdrname, entry->negatefiltervalue ? "!" : "",
746746
entry->filtervalue);

0 commit comments

Comments
 (0)