Horatiu Bota
06/03/2022, 4:55 PMKevin Kho
06/03/2022, 5:08 PMHoratiu Bota
06/03/2022, 5:08 PMKevin Kho
06/03/2022, 5:13 PMHoratiu Bota
06/03/2022, 5:14 PMKevin Kho
06/03/2022, 5:15 PMHoratiu Bota
06/03/2022, 5:16 PMKevin Kho
06/03/2022, 5:19 PM- name: PREFECT__CLOUD__AGENT__ENV_VARS
value: '{"PREFECT__LOGGING__EXTRA_LOGGERS": "['boto3', 'botocore']"}'
You can find it by typing
prefect agent kubernetes install --env PREFECT__LOGGING__EXTRA_LOGGERS="['boto3', 'botocore']"
And see where it adds it in the templateHoratiu Bota
06/03/2022, 5:53 PMKevin Kho
06/03/2022, 5:55 PMHoratiu Bota
06/03/2022, 5:55 PMKubernetesRun(env={'PREFECT__LOGGING__LEVEL': 'DEBUG', 'PREFECT__LOGGING__EXTRA_LOGGERS': '["custom"]'})
Kevin Kho
06/03/2022, 6:07 PMHoratiu Bota
06/03/2022, 6:10 PMPREFECT__LOGGING__EXTRA_LOGGERS
env variable instead of setting the config.toml value"PREFECT__LOGGING__LEVEL": "DEBUG"
in the run config works fine (i.e., sets the right level), it's just the extra loggers that don'tKevin Kho
06/03/2022, 7:42 PMflow.run()
whereas this logger needs the CloudHandler attached to the logs to send those. I think the logger might not be configured right? Maybe you can try with the test code above?