Skip to content

Commit

Permalink
🔧 added logging messages around execution
Browse files Browse the repository at this point in the history
  • Loading branch information
yjmrobert committed Sep 28, 2023
1 parent 17230cb commit 2c7053b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import azure.functions as func
import os
from databricks.sdk import WorkspaceClient
import logging

from lib.databricks_utils import get_workspace_client, remove_deleted_users_in_workspace, synchronize_workspace_users

Expand Down Expand Up @@ -41,9 +40,11 @@ def queue_sync_workspace_users_function(msg: func.QueueMessage) -> None:
"""
workspace_definition = msg.get_json()
logging.info("Synchronizing workspace users.")

sync_workspace_users_function(workspace_definition)

print("Successfully synchronized workspace users.")
logging.info("Successfully synchronized workspace users.")
return None


Expand Down

0 comments on commit 2c7053b

Please sign in to comment.