changes logging levels
This commit is contained in:
parent
7349960421
commit
21193b4faa
@ -38,7 +38,8 @@ func cleanBadDomains(domains []string) []string {
|
|||||||
// remove allow-listed matches
|
// remove allow-listed matches
|
||||||
total = len(domains)
|
total = len(domains)
|
||||||
|
|
||||||
for _, allowedItem := range config.Config.AllowLists {
|
for i, allowedItem := range config.Config.AllowLists {
|
||||||
|
log.Printf("[DEBUG] Processing %d of %d\n", i+1, len(config.Config.AllowLists))
|
||||||
for k, v := range domains {
|
for k, v := range domains {
|
||||||
r, err := regexp.Compile(allowedItem)
|
r, err := regexp.Compile(allowedItem)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
func timeTrack(start time.Time, name string) {
|
func timeTrack(start time.Time, name string) {
|
||||||
elapsed := time.Since(start)
|
elapsed := time.Since(start)
|
||||||
log.Printf("[TRACE] Function %s took %s\n", name, elapsed)
|
log.Printf("[DEBUG] Function %s took %s\n", name, elapsed)
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeStringFromSlice(s []string, i int) []string {
|
func removeStringFromSlice(s []string, i int) []string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user