Skip to content

Use a new pipe for receiving the logs from the agent process itself (not the user script) #8

Open
@isidentical

Description

@isidentical

def _parse_agent_and_log(self, line: str, level: LogLevel) -> None:
# TODO: we probably should create a new fd and pass it as
# one of the the arguments to the child process. Then everything
# from that fd can be automatically logged as originating from the
# bridge.
# Agent can produce [trace] messages, so change the log
# level to it if this does not originate from the user.
if line.startswith("[trace]"):
line = line.replace("[trace]", "", 1)
level = LogLevel.TRACE
source = LogSource.BRIDGE
else:
source = LogSource.USER
self.log(line, level=level, source=source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions