Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
335 stars 103 forks source link

Logging traceback for fatal errors #1064

Closed vrdmr closed 2 years ago

vrdmr commented 2 years ago

Description

Currently, the log messages do not contain any relevant traceback and exception details. Adding a new traceback info to be logged.

Fixes #


PR information

Quality of Code and Contribution Guidelines

codecov[bot] commented 2 years ago

Codecov Report

Merging #1064 (cc1588f) into dev (66fb7dd) will decrease coverage by 0.12%. The diff coverage is 22.22%.

@@            Coverage Diff             @@
##              dev    #1064      +/-   ##
==========================================
- Coverage   83.58%   83.46%   -0.13%     
==========================================
  Files          33       33              
  Lines        1773     1778       +5     
  Branches      282      282              
==========================================
+ Hits         1482     1484       +2     
- Misses        227      230       +3     
  Partials       64       64              
Flag Coverage Δ
unittests 83.46% <22.22%> (-0.13%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
azure_functions_worker/dispatcher.py 89.12% <0.00%> (ø)
azure_functions_worker/main.py 0.00% <0.00%> (ø)
azure_functions_worker/logging.py 40.81% <40.00%> (-0.10%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 66fb7dd...cc1588f. Read the comment docs.