diff options
author | 2022-06-04 17:46:07 -0700 | |
---|---|---|
committer | 2022-06-04 17:46:07 -0700 | |
commit | f974e61bd04ee5dee0a5d7d0f64d5187f1689109 (patch) | |
tree | d9ae5b0534ec5b81a5a206d41e898f3bc4ac7ebb | |
parent | Merge #144 - add black and isort (diff) |
Remove nsjail log blacklist
The blacklisted error no longer appears with the default config since
the uid and gid are set.
-rw-r--r-- | snekbox/nsjail.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index a6b202e..1f99501 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -21,7 +21,6 @@ log = logging.getLogger(__name__) LOG_PATTERN = re.compile( r"\[(?P<level>(I)|[DWEF])\]\[.+?\](?(2)|(?P<func>\[\d+\] .+?:\d+ )) ?(?P<msg>.+)" ) -LOG_BLACKLIST = ("Process will be ",) NSJAIL_PATH = os.getenv("NSJAIL_PATH", "/usr/sbin/nsjail") NSJAIL_CFG = os.getenv("NSJAIL_CFG", "./config/snekbox.cfg") @@ -79,10 +78,6 @@ class NsJail: continue msg = match["msg"] - if not DEBUG and any(msg.startswith(s) for s in LOG_BLACKLIST): - # Skip blacklisted messages if not debugging. - continue - if DEBUG and match["func"]: # Prepend PID, function signature, and line number if debugging. msg = f"{match['func']}{msg}" |