summaryrefslogtreecommitdiffhomepage
path: root/internal/logging
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-09 19:18:51 +0200
committerKujtim Hoxha <[email protected]>2025-04-09 19:18:51 +0200
commit635324d386d52e117efea6fcbe9dbf306ec75653 (patch)
tree1016d0b5303968f1023c8fb65f95e0fc3200b178 /internal/logging
parentd39d52d95d6aaab67fb3a17efb9ed62cc290e72f (diff)
downloadopencode-635324d386d52e117efea6fcbe9dbf306ec75653.tar.gz
opencode-635324d386d52e117efea6fcbe9dbf306ec75653.zip
small fixes
Diffstat (limited to 'internal/logging')
-rw-r--r--internal/logging/writer.go3
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()) {