Skip to content

Commit 334be7b

Browse files
committed
fix: use Logger.log rather than print
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
1 parent 90bb58e commit 334be7b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugin/rules/constraint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
from more_itertools import first_true
1010

11+
from plugin import logger
12+
1113
from ..cache import clearable_lru_cache
1214
from ..constants import PLUGIN_NAME, ST_PLATFORM
1315
from ..logger import Logger
@@ -57,7 +59,7 @@ def test(self, view_snapshot: ViewSnapshot) -> bool:
5759
except AlwaysBoolException as e:
5860
return e.value
5961
except Exception as e:
60-
print(f"[{PLUGIN_NAME}] ConstraintRule Exception: {e}")
62+
Logger.log(f"[{PLUGIN_NAME}] ConstraintRule Exception: {e}")
6163
return False
6264

6365
return not result if self.inverted else result

0 commit comments

Comments
 (0)