Skip to content

Commit

Permalink
Fixing the log upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreir committed Nov 4, 2024
1 parent 77a3aa9 commit 07c9abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandaserver/userinterface/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,8 @@ def uploadLog(logStr, logFileName):
gfh.close()
# execute
url = f"{baseURLSSL}/uploadLog"
data = {"file": (logFileName, fh.name)}
# sometimes the logFileName comes as an integer (e.g. a JEDI task ID) and it needs to be converted to a string
data = {"file": (str(logFileName), fh.name)}
retVal = http_client.post_files(url, data)
os.unlink(fh.name)
return retVal
Expand Down

0 comments on commit 07c9abd

Please sign in to comment.