auspex/logcheck_stub.go
2026-07-27 13:35:23 +03:00

13 lines
661 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//go:build !waf
package main
import "fmt"
// Заглушка для сборки без тега 'waf'. Реальная реализация — в logcheck.go
// (собирается только с 'go build -tags waf .'), т.к. модуль требует БД waf_info
// и специфичной для PT AF структуры путей (/var/log/ptaf_nginx/...).
func runLogCheck() error {
return fmt.Errorf("модуль -l (logcheck) недоступен в этой сборке: требует БД waf_info.\n" +
"Пересоберите бинарник с 'go build -tags waf .', чтобы получить этот модуль")
}