MCPcopy Index your code
hub / github.com/masterking32/MasterHttpRelayVPN / _fmt_time

Method _fmt_time

src/core/logging_utils.py:130–133  ·  view source on GitHub ↗
(self, record: logging.LogRecord)

Source from the content-addressed store, hash-verified

128 return code if self.use_color else ""
129
130 def _fmt_time(self, record: logging.LogRecord) -> str:
131 t = time.localtime(record.created)
132 ms = int((record.created - int(record.created)) * 1000)
133 return f"{time.strftime('%H:%M:%S', t)}"
134
135 def _fmt_level(self, levelname: str) -> str:
136 label = LEVEL_LABEL.get(levelname, levelname[:5].ljust(5))

Callers 1

formatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected