Skip to content

Commit a8d5bac

Browse files
committed
[OMCSession*] move logging into OMCSessionZMQ.sendExpression()
1 parent ccafbd0 commit a8d5bac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OMPython/OMCSession.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ def _ask(self, question: str, opt: Optional[list[str]] = None, parsed: Optional[
106106
if p in self._omc_cache:
107107
return self._omc_cache[p]
108108

109-
logger.debug('OMC ask: %s (parsed=%s)', expression, parsed)
110-
111109
try:
112110
res = self._session.sendExpression(expression, parsed=parsed)
113111
except OMCSessionException as ex:
@@ -526,6 +524,8 @@ def sendExpression(self, command, parsed=True):
526524
if p is not None:
527525
raise OMCSessionException("Process Exited, No connection with OMC. Create a new instance of OMCSessionZMQ!")
528526

527+
logger.debug("sendExpression(%r, parsed=%r)", command, parsed)
528+
529529
attempts = 0
530530
while True:
531531
try:

0 commit comments

Comments
 (0)