omnata-plugin-runtime 0.3.24a71__tar.gz → 0.3.24a73__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.3.24a71
3
+ Version: 0.3.24a73
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.3.24-a71"
3
+ version = "0.3.24-a73"
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"
@@ -1933,7 +1933,7 @@ def __managed_inbound_processing_worker(
1933
1933
  while not cancellation_token.is_set():
1934
1934
  # Get our generator object out of the queue
1935
1935
  logger.info(
1936
- f"worker {worker_index} processing. Cancelled: {cancellation_token.is_set()}"
1936
+ f"worker {worker_index} processing. Cancelled: {cancellation_token.is_set()}. Method args: {len(method_args)}. Method kwargs: {len(method_kwargs.keys())} ({','.join(method_kwargs.keys())})"
1937
1937
  )
1938
1938
  try:
1939
1939
  stream: StoredStreamConfiguration = streams_queue.get_nowait()
@@ -57,6 +57,15 @@ class PluginEntrypoint:
57
57
  class_obj = getattr(module, class_name)
58
58
  self._plugin_instance: OmnataPlugin = class_obj()
59
59
  self._plugin_instance._session = session # pylint: disable=protected-access
60
+ # the sync engine can override the snowflake connector log level via a session variable
61
+ default_snowflake_connector_log_level:str = "WARN"
62
+ v = session.sql("select getvariable('SNOWFLAKE_CONNECTOR_LOG_LEVEL')").collect()
63
+ result = v[0][0]
64
+ if result is not None:
65
+ default_snowflake_connector_log_level = result
66
+ snowflake_logger = logging.getLogger("snowflake.connector")
67
+ snowflake_logger.setLevel(default_snowflake_connector_log_level)
68
+ snowflake_logger.propagate = False
60
69
 
61
70
  def sync(self, sync_request: Dict):
62
71
  logger.info("Entered sync method")