feat: Add new logs for debug on server
Some checks failed
CI.yml / build (push) Failing after 1m36s

This commit is contained in:
d3m0k1d
2026-01-13 23:30:56 +03:00
parent f463b95f63
commit aaad8f37cb
2 changed files with 2 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ func (p *NginxParser) Parse(eventCh <-chan Event, resultCh chan<- *storage.LogEn
Method: method, Method: method,
IsViewed: false, IsViewed: false,
} }
p.logger.Info("Parsed nginx log entry", "ip", matches[1], "path", path, "status", status, "method", method)
} }
}() }()
} }

View File

@@ -52,6 +52,7 @@ func (s *Scanner) Start() {
s.ch <- Event{ s.ch <- Event{
Data: s.scanner.Text(), Data: s.scanner.Text(),
} }
s.logger.Info("Scanner event", "data", s.scanner.Text())
} else { } else {
if err := s.scanner.Err(); err != nil { if err := s.scanner.Err(); err != nil {
s.logger.Error("Scanner error") s.logger.Error("Scanner error")