Skip to content

Commit

Permalink
style: Automatic code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 11, 2024
1 parent f3a0089 commit edcbf55
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lib/cuckoo/core/resultserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
import errno
import json
import logging
import struct
import os
import socket
from threading import Lock, Thread
import struct
from contextlib import suppress

from threading import Lock, Thread

HAVE_BSON = False
with suppress(ImportError):
import bson

HAVE_BSON = True

import gevent.pool
Expand All @@ -31,7 +31,7 @@
from lib.cuckoo.common.path_utils import path_exists, path_get_filename

# from lib.cuckoo.common.netlog import BsonParser
from lib.cuckoo.common.utils import Singleton, create_folder, load_categories, default_converter
from lib.cuckoo.common.utils import Singleton, create_folder, default_converter, load_categories
from lib.cuckoo.core.log import task_log_start, task_log_stop

log = logging.getLogger(__name__)
Expand Down Expand Up @@ -389,8 +389,14 @@ def parse_message(self, buffer):
modulepath = argdict["ModulePath"]
procname = path_get_filename(modulepath)

log.info("Task %d: Process %d (parent %d): %s, path %s", self.task_id, self.version, ppid, procname, modulepath.decode())

log.info(
"Task %d: Process %d (parent %d): %s, path %s",
self.task_id,
self.version,
ppid,
procname,
modulepath.decode(),
)

def handle(self):
"""Read a BSON stream, attempting at least basic validation, and
Expand Down

0 comments on commit edcbf55

Please sign in to comment.