fix: db connection bug and delete debug logs
Some checks failed
build / build (push) Failing after 5m6s
CD - BanForge Release / release (push) Failing after 6m11s

This commit is contained in:
d3m0k1d
2026-01-21 22:43:08 +03:00
parent 211e019c68
commit 7df9925f94
3 changed files with 2 additions and 5 deletions

View File

@@ -39,7 +39,6 @@ func (j *Judge) LoadRules(rules []config.Rule) {
}
func (j *Judge) ProcessUnviewed() error {
j.logger.Info("Processing unviewed logs")
rows, err := j.db.SearchUnViewed()
if err != nil {
j.logger.Error(fmt.Sprintf("Failed to query database: %v", err))
@@ -64,7 +63,6 @@ func (j *Judge) ProcessUnviewed() error {
&entry.IsViewed,
&entry.CreatedAt,
)
j.logger.Info("Scanning database row," + entry.IP)
if err != nil {
j.logger.Error(fmt.Sprintf("Failed to scan database row: %v", err))
continue