omnata-plugin-runtime 0.3.24a75__tar.gz → 0.3.24a77__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/__init__.py +8 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/plugin_entrypoints.py +4 -5
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/LICENSE +0 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/README.md +0 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/omnata_plugin.py +0 -0
- {omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.3.24-
|
3
|
+
version = "0.3.24-a77"
|
4
4
|
description = "Classes and common runtime components for building and running Omnata Plugins"
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
6
6
|
readme = "README.md"
|
@@ -37,3 +37,11 @@ plugin code to further minimise dependancies.
|
|
37
37
|
"""
|
38
38
|
|
39
39
|
__docformat__ = "markdown" # explicitly disable rST processing in the examples above.
|
40
|
+
|
41
|
+
# if we're running inside Snowflake, we want to default the snowflake logging to WARN
|
42
|
+
# so that we don't get a ton of snowflake queries in the logs
|
43
|
+
import sys
|
44
|
+
import logging
|
45
|
+
if "snowflake_import_directory" in sys._xoptions:
|
46
|
+
logger = logging.getLogger("snowflake")
|
47
|
+
logger.setLevel(logging.WARN) # we don't want snowflake queries being logged by default
|
@@ -58,15 +58,14 @@ class PluginEntrypoint:
|
|
58
58
|
self._plugin_instance: OmnataPlugin = class_obj()
|
59
59
|
self._plugin_instance._session = session # pylint: disable=protected-access
|
60
60
|
# the sync engine can override the snowflake connector log level via a session variable
|
61
|
-
default_snowflake_connector_log_level:str = "WARN"
|
62
61
|
if session is not None:
|
63
|
-
v = session.sql("select getvariable('
|
62
|
+
v = session.sql("select getvariable('SNOWFLAKE_LOG_LEVEL')").collect()
|
64
63
|
result = v[0][0]
|
65
64
|
if result is not None:
|
66
65
|
default_snowflake_connector_log_level = result
|
67
|
-
|
68
|
-
|
69
|
-
|
66
|
+
snowflake_logger = logging.getLogger("snowflake")
|
67
|
+
snowflake_logger.setLevel(default_snowflake_connector_log_level)
|
68
|
+
snowflake_logger.propagate = False
|
70
69
|
|
71
70
|
def sync(self, sync_request: Dict):
|
72
71
|
logger.info("Entered sync method")
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.3.24a75 → omnata_plugin_runtime-0.3.24a77}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|