From fe0c5390b22facebd3926f81ebd4462e97ebdfa7 Mon Sep 17 00:00:00 2001 From: tzwm Date: Fri, 29 Mar 2024 17:07:11 +0800 Subject: [PATCH] add more logs to upload_to_remote node --- nodes/upload_to_remote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodes/upload_to_remote.py b/nodes/upload_to_remote.py index 95bb025..f44a900 100644 --- a/nodes/upload_to_remote.py +++ b/nodes/upload_to_remote.py @@ -7,6 +7,7 @@ from PIL.PngImagePlugin import PngInfo import numpy as np import io import base64 +from ..utils import log class UploadToRemote: CATEGORY = "Browser" @@ -87,7 +88,9 @@ class UploadToRemote: "Content-Type": "application/json", } data = json.dumps(data).encode('utf-8') + log(f"uploading {track_id} to {remote_url}") res = requests.post(remote_url, data=data, headers=headers) + log(f"uploaded {track_id}: {res.status_code}") # TODO: check the response