Compare commits
2 commits
#23-langfu
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 684848eda9 | |||
| 45f4d8f0c4 |
3 changed files with 4 additions and 31 deletions
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue