-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
Description
Describe the bug
Hello,
I found some traces printf
inside the code
https://github.com/microsoftgraph/msgraph-sdk-python-core/blob/main/src/msgraph_core/tasks/large_file_upload.py#L108
Expected behavior
I guess, logging.debug
can be used
How to reproduce
call task :
large_file_upload_task = LargeFileUploadTask(
parsable_factory=DriveItem,
upload_session=upload_session,
request_adapter=graph_client.request_adapter,
stream=file_io,
max_chunk_size=chunk,
)
def progress_callback(uploaded_byte_range: tuple[int, int]):
logger.debug("[%s] Uploaded %s bytes of %s bytes",file_path,uploaded_byte_range[0],file_size)
result: UploadResult = await large_file_upload_task.upload(progress_callback)
SDK Version
1.1.2
Latest version known to work for scenario above?
Known Workarounds
No response
Debug output
Click to expand log
2024-08-30 16:26:47.579 upload_item DEBUG Read File and Send datas
Chunks for upload : 2 <---
2024-08-30 16:27:17.018 progress_callback DEBUG Uploaded 0 bytes of 3397680 bytes
Chunks for upload : 1 <---
2024-08-30 16:27:31.677 progress_callback DEBUG Uploaded 2097152 bytes of 3397680 bytes
Chunks for upload : 0 <---
Last chunk: 0 upload stated <---
Last chunk response: received <---
Configuration
No response
Other information
No response