Skip to content

Commit 93954d7

Browse files
committed
fix: Update mode attribute to private in Agent class and adjust logging accordingly
1 parent b674043 commit 93954d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adf_core_python/core/agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(
112112
self.is_precompute = is_precompute
113113

114114
if is_precompute:
115-
self.mode = Mode.PRECOMPUTATION
115+
self._mode = Mode.PRECOMPUTATION
116116

117117
try:
118118
self._precompute_data = PrecomputeData(data_storage_name)
@@ -264,7 +264,7 @@ def handle_connect_ok(self, msg: Any) -> None:
264264
self.send_acknowledge(msg.request_id)
265265
self.post_connect()
266266
self.logger.info(
267-
f"Connected to kernel: {self.__class__.__qualname__} (request_id: {msg.request_id}, agent_id: {self.agent_id}, mode: {self.mode})",
267+
f"Connected to kernel: {self.__class__.__qualname__} (request_id: {msg.request_id}, agent_id: {self.agent_id}, mode: {self._mode})",
268268
request_id=msg.request_id,
269269
)
270270
if self.is_precompute:

0 commit comments

Comments
 (0)