Skip to content

Commit

Permalink
namizun v1.3.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
malkemit committed Dec 21, 2022
1 parent bf9826f commit 0ad7dc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions namizun_core/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def store_restart_namizun_uploader_log():
file = open('/var/www/namizun/udp.log', 'a')
file.write(f"date: {get_now_date()} - "
f"time: {get_now_time()} - "
f"namizun.service restarted")
f"namizun.service restarted\n")
file.close()


Expand All @@ -16,7 +16,7 @@ def store_new_upload_loop_log(total_uploader_count, total_upload_size):
f"time: {get_now_time()} - "
f"new upload loop started - "
f"[total uploader count: {total_uploader_count} - "
f"total upload size: {get_size(total_upload_size)}]")
f"total upload size: {get_size(total_upload_size)}]\n")
file.close()


Expand All @@ -26,7 +26,7 @@ def store_new_upload_agent_log(uploader_count, upload_size_for_each_ip):
f"time: {get_now_time()} - "
f"new upload agent started - "
f"[uploader count: {uploader_count} - "
f"upload size for each ip: {get_size(upload_size_for_each_ip)}]")
f"upload size for each ip: {get_size(upload_size_for_each_ip)}]\n")
file.close()


Expand All @@ -38,5 +38,5 @@ def store_new_udp_uploader_log(started_at, target_ip, target_port, upload_size,
f"ip: {target_ip} - "
f"port: {target_port} - "
f"size: {get_size(upload_size)} - "
f"finish: {ended_at}]")
f"finish: {ended_at}]\n")
file.close()

0 comments on commit 0ad7dc3

Please sign in to comment.