Skip to content

Commit d8e0d13

Browse files
committed
fix added logs
1 parent 65e5969 commit d8e0d13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_server/services/contents/fileio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def copy2_safe(src, dst, log=None):
4242
# if src file is not writable, avoid creating a back-up
4343
if not os.access(src, os.W_OK):
4444
if log:
45-
log.debug("Source file is not writeable: ", src)
45+
log.debug("Source file, %s, is not writeable", src, exc_info=True)
4646
raise PermissionError(errno.EACCES, f"File is not writable: {src}")
4747

4848
shutil.copyfile(src, dst)
@@ -60,7 +60,7 @@ async def async_copy2_safe(src, dst, log=None):
6060
"""
6161
if not os.access(src, os.W_OK):
6262
if log:
63-
log.debug("Source file is not writeable: ", src)
63+
log.debug("Source file, %s, is not writeable", src, exc_info=True)
6464
raise PermissionError(errno.EACCES, f"File is not writable: {src}")
6565

6666
await run_sync(shutil.copyfile, src, dst)

0 commit comments

Comments
 (0)