Skip to content

Commit b411914

Browse files
committed
[OMCSession*] move logging into OMCSessionZMQ.sendExpression()
1 parent 999a942 commit b411914

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
@@ -109,8 +109,6 @@ def _ask(self, question: str, opt: Optional[list[str]] = None, parsed: Optional[
109109
if p in self._omc_cache:
110110
return self._omc_cache[p]
111111

112-
logger.debug('OMC ask: %s (parsed=%s)', expression, parsed)
113-
114112
try:
115113
res = self._session.sendExpression(expression, parsed=parsed)
116114
except OMCSessionException as ex:
@@ -529,6 +527,8 @@ def sendExpression(self, command, parsed=True):
529527
if p is not None:
530528
raise OMCSessionException("Process Exited, No connection with OMC. Create a new instance of OMCSessionZMQ!")
531529

530+
logger.debug("sendExpression(%r, parsed=%r)", command, parsed)
531+
532532
attempts = 0
533533
while True:
534534
try:

0 commit comments

Comments
 (0)