process-gpt-agent-sdk 0.2.1__py3-none-any.whl → 0.2.2__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.
Potentially problematic release.
This version of process-gpt-agent-sdk might be problematic. Click here for more details.
- {process_gpt_agent_sdk-0.2.1.dist-info → process_gpt_agent_sdk-0.2.2.dist-info}/METADATA +1 -1
- {process_gpt_agent_sdk-0.2.1.dist-info → process_gpt_agent_sdk-0.2.2.dist-info}/RECORD +5 -5
- processgpt_agent_sdk/utils/logger.py +10 -1
- {process_gpt_agent_sdk-0.2.1.dist-info → process_gpt_agent_sdk-0.2.2.dist-info}/WHEEL +0 -0
- {process_gpt_agent_sdk-0.2.1.dist-info → process_gpt_agent_sdk-0.2.2.dist-info}/top_level.txt +0 -0
|
@@ -10,9 +10,9 @@ processgpt_agent_sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
10
10
|
processgpt_agent_sdk/utils/context_manager.py,sha256=efNUGxMMJi8Nxy5bOpfYAk2AIjgWoXS0tz6zkROZKrs,1804
|
|
11
11
|
processgpt_agent_sdk/utils/crewai_event_listener.py,sha256=MwIMtRjw7L1uV8QRvlNV1agxRzjL3hC5EYBQIsMX2XA,9155
|
|
12
12
|
processgpt_agent_sdk/utils/event_handler.py,sha256=ogmKcfhD2PHVQCQHpjVevZOe6LThwKIsrJcWFYqGlPA,2337
|
|
13
|
-
processgpt_agent_sdk/utils/logger.py,sha256=
|
|
13
|
+
processgpt_agent_sdk/utils/logger.py,sha256=d6Chvwx6qLAyirXRFg4bARzEovo1UYaRgLTaknHad9E,1271
|
|
14
14
|
processgpt_agent_sdk/utils/summarizer.py,sha256=0XMRZZGCM8XgmvjXMMNhbDKqFEJd5ykqqovQlbCjYZQ,5677
|
|
15
|
-
process_gpt_agent_sdk-0.2.
|
|
16
|
-
process_gpt_agent_sdk-0.2.
|
|
17
|
-
process_gpt_agent_sdk-0.2.
|
|
18
|
-
process_gpt_agent_sdk-0.2.
|
|
15
|
+
process_gpt_agent_sdk-0.2.2.dist-info/METADATA,sha256=sCVa1SUkxz0ReOE0zcQBAQ8tpiukmGB9raNUizAPBJ4,12898
|
|
16
|
+
process_gpt_agent_sdk-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
process_gpt_agent_sdk-0.2.2.dist-info/top_level.txt,sha256=Xe6zrj3_3Vv7d0pl5RRtenVUckwOVBVLQn2P03j5REo,21
|
|
18
|
+
process_gpt_agent_sdk-0.2.2.dist-info/RECORD,,
|
|
@@ -11,16 +11,25 @@ if not logging.getLogger().handlers:
|
|
|
11
11
|
format="%(asctime)s %(levelname)s %(name)s - %(message)s",
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
LOGGER_NAME = os.getenv("LOGGER_NAME") or "processgpt"
|
|
15
|
+
APPLICATION_LOGGER = logging.getLogger(LOGGER_NAME)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def set_application_logger_name(name: str) -> None:
|
|
19
|
+
"""애플리케이션 로거 이름을 런타임에 변경한다."""
|
|
20
|
+
global APPLICATION_LOGGER
|
|
21
|
+
APPLICATION_LOGGER = logging.getLogger(name or "processgpt")
|
|
15
22
|
|
|
16
23
|
|
|
17
24
|
def write_log_message(message: str, level: int = logging.INFO) -> None:
|
|
25
|
+
"""로그 메시지를 쓴다."""
|
|
18
26
|
spaced = os.getenv("LOG_SPACED", "1") != "0"
|
|
19
27
|
suffix = "\n" if spaced else ""
|
|
20
28
|
APPLICATION_LOGGER.log(level, f"{message}{suffix}")
|
|
21
29
|
|
|
22
30
|
|
|
23
31
|
def handle_application_error(title: str, error: Exception, *, raise_error: bool = True, extra: Optional[Dict] = None) -> None:
|
|
32
|
+
"""예외 상황을 처리한다."""
|
|
24
33
|
spaced = os.getenv("LOG_SPACED", "1") != "0"
|
|
25
34
|
suffix = "\n" if spaced else ""
|
|
26
35
|
context = f" | extra={extra}" if extra else ""
|
|
File without changes
|
{process_gpt_agent_sdk-0.2.1.dist-info → process_gpt_agent_sdk-0.2.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|