The reason you're receiving the warning is because it's automatically managed by the platform. It gets updated with new features and bug fixes. You can read more at Azure Functions Python worker dependencies. Using an older/different version could have unintended consequences.
If logging via
import logging
logging.basicConfig(level=logging.DEBUG)
isn't working as expected, you can also look at monitoring through Application Insights.
import logging
from azure.functions.logging import AppInsightsHandler
app_insights_handler = AppInsightsHandler()
logging.getLogger().addHandler(app_insights_handler)
And leverage the logging
object for .info()
, .warning()
, and .error()
.