Freigeben über

Exception during start of Python Azure Function not logged or found

2025-01-17T07:56:38.1366667+00:00

We have a small Python Azure Function like this :

import azure.functions as func
import logging
import zsbiconfig
app = func.FunctionApp()
@app.timer_trigger(schedule="0 */1 * * * *", arg_name="myTimer", run_on_startup=False,
                   use_monitor=False)
def zsdbi(myTimer: func.TimerRequest) -> None:
    if myTimer.past_due:
        logging.info('The timer is past due!')
    logging.info('21 Python timer trigger function executed.')
    return

If during load a Exception is thrown eg. import zsbiconfig not found I do not find this Information in the azure Portal or elsewhere. We do see however the logging calls in the LogStream but no Exception.

Community Center | Wird nicht überwacht
0 Kommentare Keine Kommentare

Ihre Antwort

Antworten können von Fragestellenden als „Angenommen“ und von Moderierenden als „Empfohlen“ gekennzeichnet werden, wodurch Benutzende wissen, dass diese Antwort das Problem des Fragestellenden gelöst hat.