(self, record, datefmt=None)
| 29 | """ |
| 30 | |
| 31 | def formatTime(self, record, datefmt=None): # noqa: N802 |
| 32 | dt = datetime.fromtimestamp(record.created, tz=timezone.utc).astimezone(SHANGHAI_TZ) |
| 33 | if datefmt: |
| 34 | return dt.strftime(datefmt) |
| 35 | return dt.strftime("%Y-%m-%d %H:%M:%S") |
| 36 | |
| 37 | |
| 38 | def setup_logging( |
nothing calls this directly
no outgoing calls
no test coverage detected