Formatted error code definitions

This commit is contained in:
Thomas Patzke 2019-04-23 00:53:52 +02:00
parent e9af99c147
commit c90d3e811e

View File

@ -38,22 +38,22 @@ logger = logging.getLogger(__name__)
# Error codes
ERR_OUTPUT = 1
ERR_INVALID_YAML = 3
ERR_SIGMA_PARSING = 4
ERR_OPEN_SIGMA_RULE = 5
ERR_OPEN_CONFIG_FILE = 5
ERR_OUTPUT = 1
ERR_INVALID_YAML = 3
ERR_SIGMA_PARSING = 4
ERR_OPEN_SIGMA_RULE = 5
ERR_OPEN_CONFIG_FILE = 5
ERR_CONFIG_INVALID_YAML = 6
ERR_CONFIG_PARSING = 6
ERR_BACKEND = 8
ERR_NOT_SUPPORTED = 9
ERR_NO_TARGET = 10
ERR_CONFIG_PARSING = 6
ERR_BACKEND = 8
ERR_NOT_SUPPORTED = 9
ERR_NO_TARGET = 10
ERR_RULE_FILTER_PARSING = 11
ERR_CONFIG_REQUIRED = 20
ERR_CONFIG_ORDER = 21
ERR_NOT_IMPLEMENTED = 42
ERR_CONFIG_REQUIRED = 20
ERR_CONFIG_ORDER = 21
ERR_NOT_IMPLEMENTED = 42
ERR_PARTIAL_FIELD_MATCH = 80
ERR_FULL_FIELD_MATCH = 90
ERR_FULL_FIELD_MATCH = 90
def print_verbose(*args, **kwargs):
if cmdargs.verbose or cmdargs.debug: