过滤无价值日志并实现最近24小时倒序分页查询
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-09 01:06:45 +08:00
1 parent 161bc3a345
commit bb4ac4d5f5
20 files changed
+765 -132

No files matched your search

+3
View File
@@ -106,6 +106,9 @@ func (s *Store) Write(ctx context.Context, entry Entry) error {
if entry.CreatedAt.Before(logpolicy.Cutoff(s.now())) {
return nil
}
if emptyEntry(entry) {
return nil
}
if entry.ID == "" {
var token [16]byte
if _, err := rand.Read(token[:]); err != nil {