Skip to content

Commit c66c501

Browse files
committed
chore: remove timestamp from example user output
1 parent 6ac9f6f commit c66c501

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/services/example.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from datetime import datetime
2-
31
from PySide6.QtCore import QThread, Signal
42

53
from utils.logger import logger
@@ -17,13 +15,11 @@ def __init__(self, firstInput: str, secondInput: str | None = None):
1715

1816
def output(self, text: str, level="INFO"):
1917
logger.log(level, text)
20-
timestamped = f"[{datetime.now().strftime('%H:%M:%S')}] {text}\n"
21-
self.outputSignal.emit(timestamped, level)
18+
self.outputSignal.emit(text, level)
2219

2320
def run(self):
24-
logger.info(
25-
f"Starting example thread with input parameters: {self.__dict__}"
26-
)
21+
inputs = self.__dict__.copy()
22+
logger.info(f"Starting example thread with input parameters: {inputs}")
2723
self.output("...")
2824
with logger.catch():
2925
self.output("Your first input was: " + self.firstInput)

0 commit comments

Comments
 (0)