Horatiu Bota
06/03/2022, 4:55 PMKevin Kho
Horatiu Bota
06/03/2022, 5:08 PMKevin Kho
Horatiu Bota
06/03/2022, 5:14 PMKevin Kho
Horatiu Bota
06/03/2022, 5:16 PMKevin Kho
- 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
Horatiu Bota
06/03/2022, 5:55 PMKubernetesRun(env={'PREFECT__LOGGING__LEVEL': 'DEBUG', 'PREFECT__LOGGING__EXTRA_LOGGERS': '["custom"]'})
Horatiu Bota
06/03/2022, 5:56 PMHoratiu Bota
06/03/2022, 5:57 PMKevin Kho
Horatiu Bota
06/03/2022, 6:10 PMPREFECT__LOGGING__EXTRA_LOGGERS
env variable instead of setting the config.toml valueHoratiu Bota
06/03/2022, 6:11 PMHoratiu Bota
06/03/2022, 6:40 PM"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
flow.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?