mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add date and time to log archive
This commit is contained in:
parent
b8b61649b7
commit
7d801ac216
@ -1,6 +1,7 @@
|
||||
import os
|
||||
import pathlib
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
import platform
|
||||
import shutil
|
||||
import time
|
||||
@ -181,9 +182,11 @@ class Controller:
|
||||
sys_info_string = (
|
||||
f"Crafty v{self.helper.get_version_string()} Support Logs\n"
|
||||
f"\n"
|
||||
f"OS Info: \n"
|
||||
f"OS Info:- \n"
|
||||
f"OS: {str(platform.system())}\n"
|
||||
f"Version: {str(platform.release())}"
|
||||
f"\n \n"
|
||||
f"Log archive created on: {datetime.now()}"
|
||||
)
|
||||
with open(
|
||||
os.path.join(temp_dir, "crafty_sys_info.txt"), "a", encoding="utf-8"
|
||||
|
Loading…
Reference in New Issue
Block a user