Compare commits

...
Sign in to create a new pull request.

2 commits

3 changed files with 4 additions and 31 deletions

View file

@ -29,6 +29,7 @@ FROM base AS production
COPY --from=builder /app/.venv /app/.venv
ENV PATH="/app/.venv/bin:$PATH"
ENV ENVIRONMENT="prod"
COPY src/ /app/src/
COPY configs/ /app/configs/
@ -53,6 +54,7 @@ COPY --from=agent_api . /agent_api/
RUN uv pip install -e /agent_api/
ENV PATH="/app/.venv/bin:$PATH"
ENV ENVIRONMENT="dev"
COPY Makefile ./
COPY .mk/ ./.mk/

View file

@ -1,29 +0,0 @@
version: 1
disable_existing_loggers: false
formatters:
test_formatter:
format: "%(asctime)s | %(correlation_id)s | %(levelname)-7s | %(name)s | %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: test_formatter
stream: ext://sys.stdout
filters: [correlation_filter]
filters:
correlation_filter:
(): src.core.correlation.CorrelationFilter
loggers:
src:
level: DEBUG
handlers: [console]
propagate: false
root:
level: WARNING
handlers: [console]

View file

@ -66,12 +66,12 @@ def execute_shell(
output = result.stdout
if output:
logger.trace(f"Command output: {len(output)} characters on stdout")
logger.trace(f"Command output STDOUT: {output}")
if result.stderr:
logger.debug("Command output errors on stderr")
stderr_lines = result.stderr.strip().split("\n")
output += "\n" + "\n".join(f"[stderr] {line}" for line in stderr_lines)
logger.debug(f"Command output STDERR: {result.stderr}")
# Truncate if needed
max_output = DEFAULT_MAX_OUTPUT