Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 00cc297

Browse files
committed
cleanup code
1 parent e272343 commit 00cc297

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

backend/src/reporting/application_insights_workflow_callbacks.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ def __init_logger(self, connection_string, max_logger_init_retries: int = 10):
101101
# remove any existing handlers
102102
self._logger.handlers.clear()
103103
# fetch handler from logger provider and attach to class
104-
handler = LoggingHandler()
105-
self._logger.addHandler(handler)
104+
self._logger.addHandler(LoggingHandler())
106105
# set logging level
107106
self._logger.setLevel(logging.DEBUG)
108107

@@ -111,8 +110,7 @@ def __init_logger(self, connection_string, max_logger_init_retries: int = 10):
111110

112111
def _format_details(self, details: Dict[str, Any] | None = None) -> Dict[str, Any]:
113112
"""
114-
Format the details dictionary to comply with the Application Insights structured.
115-
113+
Format the details dictionary to comply with the Application Insights structured
116114
logging Property column standard.
117115
118116
Args:

0 commit comments

Comments
 (0)