prediction-market-agent-tooling 0.30.0__py3-none-any.whl → 0.31.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- prediction_market_agent_tooling/loggers.py +11 -2
- {prediction_market_agent_tooling-0.30.0.dist-info → prediction_market_agent_tooling-0.31.0.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.30.0.dist-info → prediction_market_agent_tooling-0.31.0.dist-info}/RECORD +6 -6
- {prediction_market_agent_tooling-0.30.0.dist-info → prediction_market_agent_tooling-0.31.0.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.30.0.dist-info → prediction_market_agent_tooling-0.31.0.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.30.0.dist-info → prediction_market_agent_tooling-0.31.0.dist-info}/entry_points.txt +0 -0
@@ -14,12 +14,21 @@ class LogFormat(str, Enum):
|
|
14
14
|
GCP = "gcp"
|
15
15
|
|
16
16
|
|
17
|
+
class LogLevel(str, Enum):
|
18
|
+
CRITICAL = "CRITICAL"
|
19
|
+
ERROR = "ERROR"
|
20
|
+
WARNING = "WARNING"
|
21
|
+
INFO = "INFO"
|
22
|
+
DEBUG = "DEBUG"
|
23
|
+
|
24
|
+
|
17
25
|
class LogConfig(BaseSettings):
|
18
26
|
model_config = SettingsConfigDict(
|
19
27
|
env_file=".env", env_file_encoding="utf-8", extra="ignore"
|
20
28
|
)
|
21
29
|
|
22
30
|
LOG_FORMAT: LogFormat = LogFormat.DEFAULT
|
31
|
+
LOG_LEVEL: LogLevel = LogLevel.DEBUG
|
23
32
|
|
24
33
|
|
25
34
|
GCP_LOG_LOGURU_FORMAT = (
|
@@ -49,7 +58,7 @@ def patch_logger() -> None:
|
|
49
58
|
# Change built-in logging.
|
50
59
|
if format_logging is not None:
|
51
60
|
logging.basicConfig(
|
52
|
-
level=
|
61
|
+
level=config.LOG_LEVEL.value, format=format_logging, datefmt=datefmt_logging
|
53
62
|
)
|
54
63
|
|
55
64
|
# Change loguru.
|
@@ -58,7 +67,7 @@ def patch_logger() -> None:
|
|
58
67
|
logger.add(
|
59
68
|
sys.stdout,
|
60
69
|
format=format_loguru,
|
61
|
-
level=
|
70
|
+
level=config.LOG_LEVEL.value,
|
62
71
|
colorize=True,
|
63
72
|
)
|
64
73
|
|
@@ -19,7 +19,7 @@ prediction_market_agent_tooling/deploy/gcp/deploy.py,sha256=CYUgnfy-9XVk04kkxA_5
|
|
19
19
|
prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py,sha256=qYIHRxQLac3yxtZ8ChikiPG9O1aUQucHW0muTSm1nto,2627
|
20
20
|
prediction_market_agent_tooling/deploy/gcp/utils.py,sha256=oyW0jgrUT2Tr49c7GlpcMsYNQjoCSOcWis3q-MmVAhU,6089
|
21
21
|
prediction_market_agent_tooling/gtypes.py,sha256=xGSJXw12hzp8LwvQ956l01GiZMWd07MZTYqo8CXVeLY,2417
|
22
|
-
prediction_market_agent_tooling/loggers.py,sha256=
|
22
|
+
prediction_market_agent_tooling/loggers.py,sha256=ua9rynYmsbOJZjxPIFxRBooomeN08zuLSJ7lxZMDS7w,3133
|
23
23
|
prediction_market_agent_tooling/markets/agent_market.py,sha256=SMvkXct_RgHXqF-fVq3ooTIQ_99MG77kVlvS3rM8Ozo,7019
|
24
24
|
prediction_market_agent_tooling/markets/categorize.py,sha256=yTd-lDMPW4ESDSzmxeLLBuzLX0FggOF7Vbswh7295o0,941
|
25
25
|
prediction_market_agent_tooling/markets/data_models.py,sha256=uODY3aoFp8YYeLAUcrzMk1yU8pIKsTLobB9xIEGTmKs,1170
|
@@ -65,8 +65,8 @@ prediction_market_agent_tooling/tools/safe.py,sha256=h0xOO0eNtitClf0fPkn-0oTc6A_
|
|
65
65
|
prediction_market_agent_tooling/tools/singleton.py,sha256=CiIELUiI-OeS7U7eeHEt0rnVhtQGzwoUdAgn_7u_GBM,729
|
66
66
|
prediction_market_agent_tooling/tools/utils.py,sha256=zkmwPi3YisgZDPCeNwaRbL8sInOYOkvFgFY4Q8PbEo4,5077
|
67
67
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=cboATXNmEdn5RmPbVblHOwOdUMKBYrUK3GiI6i6Vzxo,9855
|
68
|
-
prediction_market_agent_tooling-0.
|
69
|
-
prediction_market_agent_tooling-0.
|
70
|
-
prediction_market_agent_tooling-0.
|
71
|
-
prediction_market_agent_tooling-0.
|
72
|
-
prediction_market_agent_tooling-0.
|
68
|
+
prediction_market_agent_tooling-0.31.0.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
69
|
+
prediction_market_agent_tooling-0.31.0.dist-info/METADATA,sha256=LKQcmOFaHJoGx4mocx4Gh04ErtMk-D-F9sRRJBNvE5s,5465
|
70
|
+
prediction_market_agent_tooling-0.31.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
71
|
+
prediction_market_agent_tooling-0.31.0.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
72
|
+
prediction_market_agent_tooling-0.31.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|