projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updating Juju to use the latest 2.9 version
[osm/N2VC.git]
/
n2vc
/
loggable.py
diff --git
a/n2vc/loggable.py
b/n2vc/loggable.py
index
b3b98da
..
cbaa116
100644
(file)
--- a/
n2vc/loggable.py
+++ b/
n2vc/loggable.py
@@
-31,7
+31,6
@@
import time
class Loggable:
def __init__(self, log, log_to_console: bool = False, prefix: str = ""):
class Loggable:
def __init__(self, log, log_to_console: bool = False, prefix: str = ""):
-
self._last_log_time = None # used for time increment in logging
self._log_to_console = log_to_console
self._prefix = prefix
self._last_log_time = None # used for time increment in logging
self._log_to_console = log_to_console
self._prefix = prefix
@@
-93,7
+92,6
@@
class Loggable:
include_thread: bool = False,
include_coroutine: bool = True,
) -> str:
include_thread: bool = False,
include_coroutine: bool = True,
) -> str:
-
# time increment from last log
now = time.perf_counter()
if self._last_log_time is None:
# time increment from last log
now = time.perf_counter()
if self._last_log_time is None:
@@
-115,7
+113,7
@@
class Loggable:
if not include_path:
i = filename.rfind("/")
if i > 0:
if not include_path:
i = filename.rfind("/")
if i > 0:
- filename = filename[i + 1:]
+ filename = filename[i + 1
:]
# datetime
dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
# datetime
dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")