Demote some log.printf into log.tracef

This commit is contained in:
Eugene Bujak
2019-02-07 18:24:12 +03:00
parent 6e5731ab02
commit 68c8a4d484
6 changed files with 10 additions and 10 deletions

View File

@@ -228,7 +228,7 @@ func (filter *filter) load() error {
}
filterFilePath := filter.Path()
log.Printf("Loading filter %d contents to: %s", filter.ID, filterFilePath)
log.Tracef("Loading filter %d contents to: %s", filter.ID, filterFilePath)
if _, err := os.Stat(filterFilePath); os.IsNotExist(err) {
// do nothing, file doesn't exist
@@ -240,7 +240,7 @@ func (filter *filter) load() error {
return err
}
log.Printf("File %s, id %d, length %d", filterFilePath, filter.ID, len(filterFileContents))
log.Tracef("File %s, id %d, length %d", filterFilePath, filter.ID, len(filterFileContents))
rulesCount, _, rules := parseFilterContents(filterFileContents)
filter.RulesCount = rulesCount