mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:56:30 +00:00
write logs for inference and loader to file
This commit is contained in:
@@ -30,7 +30,7 @@ cdef class CDNManager:
|
||||
constants.log(f'uploaded {filename} ({len(file_bytes)} bytes) to the {bucket}')
|
||||
return True
|
||||
except Exception as e:
|
||||
print(e)
|
||||
constants.logerror(e)
|
||||
return False
|
||||
|
||||
cdef download(self, str folder, str filename):
|
||||
@@ -40,5 +40,5 @@ cdef class CDNManager:
|
||||
constants.log(f'downloaded {filename} from the {folder}')
|
||||
return True
|
||||
except Exception as e:
|
||||
print(e)
|
||||
constants.logerror(e)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user