Actually log fake errors and warnings

This commit is contained in:
Jan Kvetina 2022-02-19 15:53:05 +01:00
parent 630a56d173
commit 3b3698ccdf

View File

@ -2693,7 +2693,7 @@ CREATE OR REPLACE PACKAGE BODY app AS
rec.created_at := SYSTIMESTAMP; rec.created_at := SYSTIMESTAMP;
-- dont log blacklisted records -- dont log blacklisted records
IF SQLCODE = 0 AND NOT app.is_debug_on() AND app.is_blacklisted(rec.flag, rec.module_name, rec.action_name) THEN IF SQLCODE = 0 AND NOT app.is_debug_on() AND app.is_blacklisted(rec.flag, rec.module_name, rec.action_name) AND rec.flag NOT IN (app.flag_error, app.flag_warning) THEN
RETURN NULL; -- skip blacklisted record only if there is no error and debug mode off RETURN NULL; -- skip blacklisted record only if there is no error and debug mode off
END IF; END IF;