def METHOD_NAME(self, record):
    """Set up additional information on the record object."""
    current_process = ContextInjector.get_current_process()
    current_hostname = socket.gethostname()
    record.host = current_hostname
    record.proc = current_process
    record.pid = "-"
    if not isinstance(current_process, str):
        record.pid = current_process.pid
        # Be compatible with python-psutil 1.0 and 2.0, 3.0
        proc_name = current_process.name
        if callable(proc_name):
            proc_name = proc_name()
        record.proc_name = proc_name
        # Be compatible with python-psutil 1.0 and 2.0, 3.0
        cmd_line = current_process.cmdline
        if callable(cmd_line):
            cmd_line = cmd_line()
        record.command_line = " ".join(cmd_line)
    record.callstack = self.format_callstack()
    record.url = "-"
    record.args = "-"
    record.form = "-"
    record.username = "-"
    try:
        record.url = flask.request.url
    except RuntimeError:
        pass
    try:
        record.args = flask.request.args
    except RuntimeError:
        pass
    try:
        record.form = dict(flask.request.form)
        if "csrf_token" in record.form:
            record.form["csrf_token"] = "Was present, is cleaned up"
    except RuntimeError:
        pass
    try:
        record.username = f"{flask.g.user.id} -- {flask.g.user.email}"
    except Exception:
        pass
    return True