aboutsummaryrefslogtreecommitdiff
path: root/jb/decorators.py
diff options
context:
space:
mode:
authorMax Nanis2026-09-10 01:00:39 -0700
committerMax Nanis2026-09-10 01:00:39 -0700
commit4dca7296742b607e74f16e2f6484c51163a41ace (patch)
tree0839c16d0905deb587d3ee25ff93fd3ccf7eeeb6 /jb/decorators.py
parent832aecaddce80e312095ecdb572d7756eb9df5e9 (diff)
downloadamt-jb-4dca7296742b607e74f16e2f6484c51163a41ace.tar.gz
amt-jb-4dca7296742b607e74f16e2f6484c51163a41ace.zip
using model_validator on GRLSettings. Allows null default values, then to asser them on load. Required so pydantic_settings can be loaded in tests without params
Diffstat (limited to 'jb/decorators.py')
-rw-r--r--jb/decorators.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/jb/decorators.py b/jb/decorators.py
index cafd7a9..1a7a145 100644
--- a/jb/decorators.py
+++ b/jb/decorators.py
@@ -1,3 +1,5 @@
+import logging
+
import boto3
from botocore.config import Config
from generalresearch.pg_helper import PostgresConfig
@@ -22,6 +24,15 @@ redis_config = RedisConfig(
)
REDIS = redis_config.create_redis_client()
+# --- Logging ---
+
+logging.basicConfig(
+ level=logging.INFO,
+ format="%(asctime)s - %(levelname)s:%(name)s:%(message)s",
+ datefmt="%Y-%m-%d %H:%M:%S",
+)
+LOG = logging.getLogger("amtjb")
+
CLIENT_CONFIG = Config(
# connect_timeout (float or int) – The time in seconds till a timeout
# exception is thrown when attempting to make a connection. The default