Updated resolver to use logging

This commit is contained in:
Lyncoln
2026-10-30 02:52:06 -04:00
parent fe2a54ca00
commit b5591ade62
+2 -1
View File
@@ -1,4 +1,5 @@
import os
import logging
def resolveItem(action, item):
#resolver_log = os.environ.get("LOGS_RESOLVER", "false").lower() == "true"
@@ -17,7 +18,7 @@ def resolveItem(action, item):
except (KeyError, IndexError) as error:
if resolver_log:
print(f"Resolver target key/index {error} not found during {action.name}")
logging.info(f"Resolver target key/index {error} not found during {action.name}")
target = None
resolved[label] = target