Skip to content

Commit 930f045

Browse files
committed
Changing logging output
1 parent af512f1 commit 930f045

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nxc/modules/snipped.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ def on_admin_login(self, context, connection):
9696
connection.conn.getFile(self.share, remote_file_path, local_file.write)
9797

9898
if not exists(local_file_path):
99-
context.log.error(f"Downloaded file {local_file_path} does not exist.")
99+
context.log.fail(f"Downloaded file '{local_file_path}' does not exist.")
100100
continue
101101

102102
file_size = getsize(local_file_path)
103103
if file_size == 0:
104-
context.log.error(f"Downloaded file {local_file_path} is 0 bytes. Skipping.")
104+
context.log.fail(f"Downloaded file '{local_file_path}' is 0 bytes. Skipping.")
105105
os.remove(local_file_path)
106106
else:
107107
total_files_downloaded += 1
108108
except Exception as e:
109-
context.log.debug(f"Failed to download {remote_file_path} for user {folder_name}: {e}")
109+
context.log.debug(f"Failed to download '{remote_file_path}' for user {folder_name}: {e}")
110110

111111
if total_files_downloaded > 0 and host_output_path:
112112
context.log.success(f"{total_files_downloaded} file(s) downloaded from host {connection.host} to {host_output_path}.")

0 commit comments

Comments
 (0)