agenthink 0.1.16__tar.gz → 0.1.17__tar.gz
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.
- {agenthink-0.1.16 → agenthink-0.1.17}/PKG-INFO +1 -1
- {agenthink-0.1.16 → agenthink-0.1.17}/pyproject.toml +1 -1
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink/connection.py +17 -7
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink.egg-info/PKG-INFO +1 -1
- {agenthink-0.1.16 → agenthink-0.1.17}/README.md +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/setup.cfg +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink/__init__.py +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink/models.py +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink/utils.py +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink.egg-info/SOURCES.txt +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink.egg-info/dependency_links.txt +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink.egg-info/requires.txt +0 -0
- {agenthink-0.1.16 → agenthink-0.1.17}/src/agenthink.egg-info/top_level.txt +0 -0
|
@@ -21,13 +21,17 @@ import re
|
|
|
21
21
|
dotenv.load_dotenv()
|
|
22
22
|
|
|
23
23
|
# Create and configure logger
|
|
24
|
-
logging.basicConfig(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
)
|
|
24
|
+
# logging.basicConfig(
|
|
25
|
+
# filename="datastore_library.log",
|
|
26
|
+
# format='%(asctime)s %(levelname)s:%(name)s:%(message)s',
|
|
27
|
+
# filemode='w'
|
|
28
|
+
# )
|
|
29
|
+
# logger = logging.getLogger(__name__)
|
|
30
|
+
# logger.setLevel(logging.DEBUG)
|
|
31
|
+
|
|
29
32
|
logger = logging.getLogger(__name__)
|
|
30
|
-
logger.
|
|
33
|
+
logger.addHandler(logging.NullHandler())
|
|
34
|
+
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
class DBConnector:
|
|
@@ -53,6 +57,12 @@ class DBConnector:
|
|
|
53
57
|
f"EndpointSuffix=core.windows.net"
|
|
54
58
|
)
|
|
55
59
|
|
|
60
|
+
logger.debug("DEBUG TEST: debug level log")
|
|
61
|
+
logger.info("INFO TEST: info level log")
|
|
62
|
+
logger.warning("WARNING TEST: warning level log")
|
|
63
|
+
logger.error("ERROR TEST: error level log")
|
|
64
|
+
|
|
65
|
+
|
|
56
66
|
try:
|
|
57
67
|
blob_service = BlobServiceClient.from_connection_string(connection_str)
|
|
58
68
|
self.__container_client = blob_service.get_container_client(self.__container_name)
|
|
@@ -273,7 +283,7 @@ class DBConnector:
|
|
|
273
283
|
logger.error("Unsupported database type '%s' for database '%s'", database_type, db_name)
|
|
274
284
|
return None
|
|
275
285
|
|
|
276
|
-
def
|
|
286
|
+
def _debugging_function(self):
|
|
277
287
|
prefix = f"{self._workflow_id}/{self._user_id}/"
|
|
278
288
|
all_blob_list = self.__container_client.list_blobs(name_starts_with=prefix)
|
|
279
289
|
output_message = f"""Debugging function executed. Current connections:\n
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|