Introduce silent mode to disable logging

This commit is contained in:
Sander Declerck 2025-10-23 17:45:03 +02:00
parent 2e1ee0dfa4
commit 9a78cafbfd
No known key found for this signature in database
7 changed files with 142 additions and 4 deletions

View file

@ -10,5 +10,18 @@ export function getMalwareAction() {
return MALWARE_ACTION_BLOCK;
}
export function getLoggingLevel() {
const level = cliArguments.getLoggingLevel();
if (level === LOGGING_SILENT) {
return LOGGING_SILENT;
}
return LOGGING_NORMAL;
}
export const MALWARE_ACTION_BLOCK = "block";
export const MALWARE_ACTION_PROMPT = "prompt";
export const LOGGING_SILENT = "silent";
export const LOGGING_NORMAL = "normal";