flush
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 37s
Smoke Test / Run basic test suite (pull_request) Successful in 3m14s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m28s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m45s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m23s
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 37s
Smoke Test / Run basic test suite (pull_request) Successful in 3m14s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m28s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m45s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m23s
This commit is contained in:
parent
6919ae5fec
commit
bf6d27ae63
@ -48,14 +48,14 @@ class TimedLogger:
|
||||
self.file = file
|
||||
|
||||
def log(self, msg, show_step_time=True, show_total_time=False):
|
||||
prefix = f"{datetime.datetime.utcnow()}"
|
||||
prefix = f"{datetime.datetime.utcnow()} - {self.id}"
|
||||
if show_step_time:
|
||||
prefix += f" - {datetime.datetime.now() - self.last} (step)"
|
||||
if show_step_time:
|
||||
if show_total_time:
|
||||
prefix += f" - {datetime.datetime.now() - self.start} (total)"
|
||||
prefix += f" - {self.id}"
|
||||
|
||||
print(f"{prefix}: {msg}", file=self.file)
|
||||
if self.file:
|
||||
self.file.flush()
|
||||
self.last = datetime.datetime.now()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user