Skip to content

Commit e395d37

Browse files
feat: improve logging for resource overrides and configuration (#1478)
1 parent 807b041 commit e395d37

7 files changed

Lines changed: 29 additions & 9 deletions

File tree

packages/uipath-platform/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-platform"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-platform/src/uipath/platform/common/_config.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ def __new__(cls):
1919
cls._instance = super().__new__(cls)
2020
return cls._instance
2121

22+
def __repr__(self) -> str:
23+
return (
24+
f"{self.__class__.__name__}("
25+
f"project_id={self.project_id!r}, "
26+
f"folder_key={self.folder_key!r}, "
27+
f"folder_path={self.folder_path!r}, "
28+
f"base_url={self.base_url!r}, "
29+
f"tenant_id={self.tenant_id!r}, "
30+
f"organization_id={self.organization_id!r}, "
31+
f"job_key={self.job_key!r}, "
32+
f"process_uuid={self.process_uuid!r}, "
33+
f"process_version={self.process_version!r})"
34+
)
35+
2236
@property
2337
def bindings_file_path(self) -> Path:
2438
from uipath.platform.common.constants import UIPATH_BINDINGS_FILE
@@ -82,6 +96,12 @@ def folder_key(self) -> str | None:
8296

8397
return os.getenv(ENV_FOLDER_KEY, None)
8498

99+
@property
100+
def folder_path(self) -> str | None:
101+
from uipath.platform.common.constants import ENV_FOLDER_PATH
102+
103+
return os.getenv(ENV_FOLDER_PATH, None)
104+
85105
@property
86106
def process_uuid(self) -> str | None:
87107
from uipath.platform.common.constants import ENV_UIPATH_PROCESS_UUID

packages/uipath-platform/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
22
name = "uipath"
3-
version = "2.10.25"
3+
version = "2.10.26"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
88
"uipath-core>=0.5.2, <0.6.0",
99
"uipath-runtime>=0.9.1, <0.10.0",
10-
"uipath-platform>=0.1.2, <0.2.0",
10+
"uipath-platform>=0.1.4, <0.2.0",
1111
"click>=8.3.1",
1212
"httpx>=0.28.1",
1313
"pyjwt>=2.10.1",

packages/uipath/src/uipath/_cli/_utils/_studio_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ async def get_resource_overwrites(self) -> dict[str, ResourceOverwrite]:
551551
dict[str, ResourceOverwrite]: Dict of resource overwrites
552552
"""
553553
if not os.path.exists(UiPathConfig.bindings_file_path):
554-
logger.debug(
554+
logger.warning(
555555
"Bindings file not found at %s, no overwrites to fetch from Studio",
556556
UiPathConfig.bindings_file_path,
557557
)
@@ -587,7 +587,7 @@ async def get_resource_overwrites(self) -> dict[str, ResourceOverwrite]:
587587
for key, value in data.items():
588588
overwrites[key] = ResourceOverwriteParser.parse(key, value)
589589

590-
logger.debug(
590+
logger.info(
591591
"Loaded %d resource overwrite(s) from Studio API for solution %s: %s",
592592
len(overwrites),
593593
solution_id,

packages/uipath/src/uipath/_cli/cli_debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def execute_debug_runtime():
187187
):
188188
await execute_debug_runtime()
189189
else:
190-
logger.debug(
190+
logger.info(
191191
"No UIPATH_PROJECT_ID configured, executing without resource overwrites"
192192
)
193193
await execute_debug_runtime()

packages/uipath/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)