Skip to content

Commit 0eadfd5

Browse files
authored
Merge pull request #75 from UiPath/fix/add_extra_logs
feat(logging): add more trace exceptions
2 parents 2ace19b + 5674b01 commit 0eadfd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.107"
3+
version = "0.0.108"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_langchain/tracers/AsyncUiPathTracer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async def _worker(self):
138138
f"Error when sending trace: {response}. Body is: {response.text}"
139139
)
140140
except Exception as e:
141-
logger.warning(f"Exception when sending trace: {e}.")
141+
logger.warning(f"Exception when sending trace: {e}", exc_info=e)
142142

143143
# wait for a bit to ensure all logs are sent
144144
await asyncio.sleep(1)
@@ -159,7 +159,7 @@ async def _worker(self):
159159
timeout=10,
160160
)
161161
except Exception as e:
162-
logger.warning(f"Exception when sending trace: {e}.")
162+
logger.warning(f"Exception when sending trace: {e}", exc_info=e)
163163

164164
async def _persist_run(self, run: Run) -> None:
165165
# Determine if this is a start or end trace based on whether end_time is set

0 commit comments

Comments
 (0)