Devin Flake
01/15/2025, 4:24 PMPREFECT_LOGGING_SERVER_LEVEL
- I'm not sure why the 'jobs' which are started by the 'worker' would be complaining about the 'server' logging level, any ideas? (traceback in the thread)Devin Flake
01/15/2025, 4:24 PMkubectl logs pod/prefect-job-w4srl-zn2pf
Traceback (most recent call last):
File "/usr/local/bin/prefect", line 5, in <module>
from prefect.cli import app
File "/usr/local/lib/python3.11/site-packages/prefect/cli/__init__.py", line 12, in <module>
import prefect.cli.shell
File "/usr/local/lib/python3.11/site-packages/prefect/cli/shell.py", line 16, in <module>
from prefect import flow
File "<frozen importlib._bootstrap>", line 1229, in _handle_fromlist
File "/usr/local/lib/python3.11/site-packages/prefect/__init__.py", line 117, in __getattr__
module = import_module(module_name, package=package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/main.py", line 55, in <module>
prefect.logging.configuration.setup_logging()
File "/usr/local/lib/python3.11/site-packages/prefect/logging/configuration.py", line 71, in setup_logging
config = load_logging_config(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/logging/configuration.py", line 41, in load_logging_config
template.substitute(current_settings.to_environment_variables())
File "/usr/local/lib/python3.11/string.py", line 121, in substitute
return self.pattern.sub(convert, self.template)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/string.py", line 114, in convert
return str(mapping[named])
~~~~~~~^^^^^^^
KeyError: 'PREFECT_LOGGING_SERVER_LEVEL'
Nate
01/15/2025, 5:12 PMlogging.yaml
? it looks like there's potentially some extra incorrect key in that fileNate
01/15/2025, 5:14 PMPREFECT_SERVER_LOGGING_LEVEL
Devin Flake
01/15/2025, 5:18 PMDevin Flake
01/15/2025, 5:29 PMlogging.yaml
it should be PREFECT_SERVER_LOGGING_LEVEL
but for the Prefect Server the env variable is PREFECT_LOGGING_SERVER_LEVEL
?Nate
01/15/2025, 5:30 PMSERVER_LOGGING
either way, I think we accept PREFECT_LOGGING_SERVER_LEVEL
as an alias for the settings object (and we should also accept it as an alias in the yaml, but it seems we dont)Devin Flake
01/15/2025, 5:30 PMDevin Flake
01/15/2025, 5:47 PMPREFECT_LOGGING_INTERNAL_LEVEL
to PREFECT_INTERNAL_LOGGING_LEVEL
Nate
01/15/2025, 5:59 PM