diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-09 19:18:51 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-09 19:18:51 +0200 |
| commit | 635324d386d52e117efea6fcbe9dbf306ec75653 (patch) | |
| tree | 1016d0b5303968f1023c8fb65f95e0fc3200b178 /internal/logging | |
| parent | d39d52d95d6aaab67fb3a17efb9ed62cc290e72f (diff) | |
| download | opencode-635324d386d52e117efea6fcbe9dbf306ec75653.tar.gz opencode-635324d386d52e117efea6fcbe9dbf306ec75653.zip | |
small fixes
Diffstat (limited to 'internal/logging')
| -rw-r--r-- | internal/logging/writer.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/logging/writer.go b/internal/logging/writer.go index 9e597f5c9..06a5330e3 100644 --- a/internal/logging/writer.go +++ b/internal/logging/writer.go @@ -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()) { |
