From 7712d2e1c83096cc16f6c51183690ae20519a462 Mon Sep 17 00:00:00 2001
From: Xavier Robin <xavier.robin@unibas.ch>
Date: Wed, 21 Aug 2024 16:57:52 +0200
Subject: [PATCH] log: reduce verbosity

---
 actions/ost-compare-ligand-structures        | 4 ++--
 actions/ost-compare-structures               | 2 +-
 modules/mol/alg/pymod/ligand_scoring_base.py | 3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/actions/ost-compare-ligand-structures b/actions/ost-compare-ligand-structures
index bd7631f5b..b28384cf1 100644
--- a/actions/ost-compare-ligand-structures
+++ b/actions/ost-compare-ligand-structures
@@ -273,8 +273,8 @@ def _ParseArgs():
         '--verbosity',
         dest="verbosity",
         type=int,
-        default=3,
-        help="Set verbosity level. Defaults to 3 (INFO).")
+        default=2,
+        help="Set verbosity level. Defaults to 2 (Script).")
 
     parser.add_argument(
         "--full-results",
diff --git a/actions/ost-compare-structures b/actions/ost-compare-structures
index f3ec56cb6..7f35291ac 100644
--- a/actions/ost-compare-structures
+++ b/actions/ost-compare-structures
@@ -566,7 +566,7 @@ def _ParseArgs():
         dest="verbosity",
         type=int,
         default=2,
-        help="Set verbosity level. Defaults to 3 (Script).")
+        help="Set verbosity level. Defaults to 2 (Script).")
 
     parser.add_argument(
         "--lddt-add-mdl-contacts",
diff --git a/modules/mol/alg/pymod/ligand_scoring_base.py b/modules/mol/alg/pymod/ligand_scoring_base.py
index 0e61a02c9..8710b05d1 100644
--- a/modules/mol/alg/pymod/ligand_scoring_base.py
+++ b/modules/mol/alg/pymod/ligand_scoring_base.py
@@ -859,7 +859,7 @@ class LigandScorer:
                                 new_chain = \
                                 new_editor.InsertChain(new_chain_name)
                                 break
-                        LogScript("Moved ligand residue %s to new chain %s" % (
+                        LogInfo("Moved ligand residue %s to new chain %s" % (
                             residue.qualified_name, new_chain.name))
                     else:
                         msg = \
@@ -961,6 +961,7 @@ class LigandScorer:
                 LogWarning(msg)
 
 
+        LogScript("Computing pairwise scores for all %s x %s ligands" % shape)
         for target_id, target_ligand in enumerate(self.target_ligands):
             LogInfo("Analyzing target ligand %s" % target_ligand)
 
-- 
GitLab