You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue you're encountering seems to be that the Celery worker logs are not adhering to the LOG_FORMAT environment variable, unlike the logs from the main Dify application. This discrepancy might be due to how the logging is configured for the Celery worker.
In the Dify codebase, the LOG_FORMAT environment variable is used to configure the logging format in the main application through the logging.basicConfig function [1]. However, for the Celery worker, the logging configuration is set up using the --loglevel option in the exec command, which primarily sets the log level based on the LOG_LEVEL environment variable [2]. The LOG_FORMAT might not be explicitly applied to the Celery worker's logging setup.
To resolve this, you may need to modify the Celery worker's logging configuration to explicitly use the LOG_FORMAT environment variable. This could involve adjusting the Celery worker's startup script or configuration to ensure that the logging format is set according to your requirements.
Self Checks
Dify version
0.9.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
These are logs of dify-app following “LOG_FORMAT” env.
❌ Actual Behavior
The text was updated successfully, but these errors were encountered: