Skip to content

Commit

Permalink
namizun v1.3.7.2
Browse files Browse the repository at this point in the history
- log file renamed
  • Loading branch information
malkemit committed Dec 21, 2022
1 parent 0ad7dc3 commit 9344566
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 @@ -3,15 +3,15 @@


def store_restart_namizun_uploader_log():
file = open('/var/www/namizun/udp.log', 'a')
file = open('/var/www/namizun/namizun.log', 'a')
file.write(f"date: {get_now_date()} - "
f"time: {get_now_time()} - "
f"namizun.service restarted\n")
file.close()


def store_new_upload_loop_log(total_uploader_count, total_upload_size):
file = open('/var/www/namizun/udp.log', 'a')
file = open('/var/www/namizun/namizun.log', 'a')
file.write(f"date: {get_now_date()} - "
f"time: {get_now_time()} - "
f"new upload loop started - "
Expand All @@ -21,7 +21,7 @@ def store_new_upload_loop_log(total_uploader_count, total_upload_size):


def store_new_upload_agent_log(uploader_count, upload_size_for_each_ip):
file = open('/var/www/namizun/udp.log', 'a')
file = open('/var/www/namizun/namizun.log', 'a')
file.write(f"date: {get_now_date()} - "
f"time: {get_now_time()} - "
f"new upload agent started - "
Expand All @@ -31,7 +31,7 @@ def store_new_upload_agent_log(uploader_count, upload_size_for_each_ip):


def store_new_udp_uploader_log(started_at, target_ip, target_port, upload_size, ended_at):
file = open('/var/www/namizun/udp.log', 'a')
file = open('/var/www/namizun/namizun.log', 'a')
file.write(f"date: {get_now_date()} - "
f"udp uploader - "
f"[start: {started_at} - "
Expand Down

0 comments on commit 9344566

Please sign in to comment.