Skip to content

Commit

Permalink
✨ Add date & time to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed May 31, 2024
1 parent 51c8624 commit 8471a63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from scripts.settings import Settings
from scripts.logger import log_values, log_action
from scripts.devicesLink import list_all_devices
from datetime import datetime
import scripts.realTimePlot as realTimePlot


Expand Down Expand Up @@ -169,7 +170,7 @@ def refresh_ports():
spinBox_fileSizeLimit = MainWindow.findChild(
QtWidgets.QSpinBox, "spinBox_fileSizeLimit")
fileSizeLimit = spinBox_fileSizeLimit.value()
values_to_log = [1, 2, 3]
values_to_log = [datetime.now().strftime("%Y-%m-%d %H:%M:%S"),2,3]
timer.timeout.connect(log_values(values_to_log, fileSizeLimit))
timer.start()

Expand Down

0 comments on commit 8471a63

Please sign in to comment.