mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-08 01:42:51 +02:00
newLogRotation
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user