mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1177] Feature request: add timestamps to engine log lines #488
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ryutaku on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1177
Problem
The engine's log lines carry no timestamps. Every line in
strata.log(the file pointed to by"log"instrata-<model>.json) is written as-is to stderr with no time prefix, so a log of a long-running serve gives no way to tell when a request, a restart, a cache hit, a stall, or a crash happened.This is not hypothetical - it already bit a field report. In #980 the author had to reconstruct time windows by "server restarts matched to config backups and scheduler logs", because the Strata log itself gave no time information:
For anyone diagnosing a stall, a watchdog fire (#29), a crash (#795, #779), a deadlock (#481), or a cache miss (#1128, #143), the first thing they do is paste a log excerpt - and the excerpt has no clock, so the maintainer cannot tell which lines belong to which run, which request, or which minute.
Current state
serve/server.py:608).serve/server.py:602:[strata] YYYY-MM-DD HH:MM:SS engine started: ...--log-prefix,--no-log-prefix,--color,--log-disable,--verbose, or any format knob insrc/program/generate.cpp's argument parser. llama.cpp has these; Strata dropped them.Proposal
[YYYY-MM-DD HH:MM:SS](local time, ISO-ordered date) by default.strata-<model>.json(e.g."log_prefix": true|false) and a CLI flag (--log-prefix/--no-log-prefix) to toggle it, so existing log parsers and the Monitor's log readers (serve/server.py:394,serve/server.py:449) are not broken for users who want the old format.--coloris added later).Why it matters
/metricsbecomes a one-line join instead of manual archaeology.strftimeper line, behind a flag.Notes
[strata] ...start line atserve/server.py:602already uses this format, so the engine prefix would match it.narrate_startread the log by byte offset, not by parsing timestamps, so adding a prefix does not break them.@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.