mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 13:09:46 +00:00
small fixes
This commit is contained in:
parent
d39d52d95d
commit
635324d386
4 changed files with 5 additions and 4 deletions
|
|
@ -18,7 +18,8 @@ func (w *writer) Write(p []byte) (int, error) {
|
|||
d := logfmt.NewDecoder(bytes.NewReader(p))
|
||||
for d.ScanRecord() {
|
||||
msg := LogMessage{
|
||||
ID: fmt.Sprintf("%d", time.Now().UnixNano()),
|
||||
ID: fmt.Sprintf("%d", time.Now().UnixNano()),
|
||||
Time: time.Now(),
|
||||
}
|
||||
for d.ScanKeyval() {
|
||||
switch string(d.Key()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue