small fixes

This commit is contained in:
Kujtim Hoxha
2025-04-09 19:18:51 +02:00
parent 58a7aee0c4
commit 7b8b9bdc29
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -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()) {