JAL-3551 JAL-3931 view pymol commands/responses in Log.trace
authorJim Procter <j.procter@dundee.ac.uk>
Wed, 8 Dec 2021 15:48:37 +0000 (15:48 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Wed, 8 Dec 2021 15:48:37 +0000 (15:48 +0000)
src/jalview/ext/pymol/PymolManager.java

index 26c780d..5f22526 100644 (file)
@@ -169,6 +169,14 @@ public class PymolManager
       {
         out.close();
       }
+      if (Cache.log.isTraceEnabled())
+      {
+        Cache.log.trace("Sent: " + command.toString());
+        if (result != null)
+        {
+          Cache.log.trace("Received: " + result);
+        }
+      }
     }
     return result;
   }