newLogRotation

This commit is contained in:
SpudGunMan
2024-11-25 11:49:39 -08:00
parent 669a891eeb
commit c416b00383
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -922,8 +922,8 @@ def generate_database_html(database_info):
def main():
log_dir = LOG_PATH
today = datetime.now().strftime('%Y_%m_%d')
log_file = f'meshbot{today}.log'
today = datetime.now().strftime('%Y-%m-%d')
log_file = f'meshbot.log.{today}'
log_path = os.path.join(log_dir, log_file)
if not os.path.exists(log_path):
+2 -2
View File
@@ -1217,8 +1217,8 @@ def generate_database_html(database_info):
def main():
# Log file
log_dir = LOG_PATH
today = datetime.now().strftime('%Y_%m_%d')
log_file = f'meshbot{today}.log'
today = datetime.now().strftime('%Y-%m-%d')
log_file = f'meshbot.log.{today}'
log_path = os.path.join(log_dir, log_file)
if not os.path.exists(log_path):