Closed jwmatthews closed 2 weeks ago
Issue was:
build/config_example.toml
we supplied and copied to build/config.toml
log_dir = "$pwd/logs"
Example of what I changed to allow writing to disk from the container to the shared location in the host filesystem
$ cat build/config.toml
log_level = "info"
file_log_level = "debug"
#log_dir = "$pwd/logs"
demo_mode = false
trace_enabled = true
I commented out the log_dir
entry so that it uses what we supply via compose.yaml (which sets an environment variable)
We've recently broken logging and tracing to disk when run via
podman compose up
. We are NOT writing to the shared directory which is accessible by both the container AND the host.Below is a snippet of configuration
Note:
File logging for 'kai' is set to level 'DEBUG' writing to file: '/kai/logs/kai_server.log'
When running from within the container we need the logging directory to be:
/podman_compose/logs
Which is set asKAI__LOG_DIR: "/podman_compose/logs"
from https://github.com/konveyor/kai/blob/main/compose.yamlI am using the
build/config_example.toml
we have for an example My steps were: 1)cp build/config_example.toml build/config.toml
2) Build the latest code into a local image with tag 'local' 3)TAG="local" podman compose up
Example of the config.toml I used: