Skip to content

Commit 3479e0e

Browse files
Yaseen Ahmed KhanYaseen Ahmed Khan
authored andcommitted
logs error message as well
1 parent d37235a commit 3479e0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cognite/extractorutils/unstable/core/runtime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ def _safe_get_application_config(
334334
except Exception as e:
335335
error_message = str(e)
336336
if error_message == prev_error:
337-
# Same error as before, no need to log it again
337+
# Log the error again to make sure it is not missed
338+
self.logger.error(f"{error_message}")
338339
self._cancellation_token.wait(randint(1, self.RETRY_CONFIG_INTERVAL))
339340
continue
340341
self.logger.error(error_message)

0 commit comments

Comments
 (0)