Slackbot
08/08/2024, 12:01 AMMarvin
08/08/2024, 12:01 AMI'm running Prefect server + agent locally and also in my Dev environment in AWS, and I'm having an issue where I'm seeing flow and task run logs locally in the Prefect UI, but I'm not able to see anything in the AWS environment. The flow and its tasks are running successfully in Dev, but logs aren't being displayed in the UI. I'm usingI've also tried using a custom logger a lato instantiate the logger both at the flow and task levels and callingget_run_logger()
. My minimum log level setting is INFO. I've verified the config and settings in both envs and ensured that the agent container can communicate with the server and the DB where logs are stored. Clicking on a task in Dev simply displays "This run didn't generate Logs " . The only log I have in my<http://logger.info|logger.info>()
table in my Postgres db is "Downloading flow code from storage at '/app'".public.log
logging.getLogger()
along with setting PREFECT_LOGGING_EXTRA_LOGGERS
, and I've tried print statements along with setting PREFECT_LOGGING_LOG_PRINTS
, but neither causes anything to show up in the logs.
The server and agent AWS logs in Dev don't contain any exceptions or warnings.
Here's a snapshot of my logging variables:
```PREFECT_LOGGING_COLORS='True' (from defaults)
PREFECT_LOGGING_EXTRA_LOGGERS='test-logger' (from profile)
PREFECT_LOG