Logging in Orion flows works for me, but I can't log in tasks. How to fix this?

TL;DR - setting the environment variable on the flow runner fixed the issue:

from prefect.flow_runners import KubernetesFlowRunner

DeploymentSpec(flow_runner=KubernetesFlowRunner(env={"PREFECT_LOGGING_LEVEL": "DEBUG"}))