Skip to content

Commit afbe1ee

Browse files
committed
Added GitHub deploy test log
1 parent ae6623f commit afbe1ee

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

function_app.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
def iot_hub_trigger(event: func.EventHubEvent):
1919

2020
try:
21-
# ---- MOVE ALL BLOB CODE INSIDE FUNCTION ----
21+
message = event.get_body().decode('utf-8')
22+
23+
# ✅ THIS LINE PROVES GITHUB DEPLOY IS RUNNING
24+
logging.info("===== THIS CODE IS RUNNING FROM GITHUB ACTIONS DEPLOY =====")
25+
26+
logging.info(f"Received message: {message}")
27+
28+
# ---- Blob setup INSIDE function (important) ----
2229
BLOB_CONNECTION_STRING = os.getenv('AzureWebJobsStorage')
2330
CONTAINER_NAME = "iot-data"
2431

@@ -31,10 +38,7 @@ def iot_hub_trigger(event: func.EventHubEvent):
3138
container_client.create_container()
3239
except ResourceExistsError:
3340
pass
34-
# --------------------------------------------
35-
36-
message = event.get_body().decode('utf-8')
37-
logging.info(f"Received message: {message}")
41+
# ------------------------------------------------
3842

3943
try:
4044
data = json.loads(message)

0 commit comments

Comments
 (0)