to internal logger for levels, all encompassing path

This commit is contained in:
bel
2022-01-17 18:16:23 -07:00
parent e660f2ef9f
commit 73ccc22fd5
9 changed files with 179 additions and 55 deletions

View File

@@ -3,7 +3,7 @@ package broker
import (
"fmt"
"local/truckstop/config"
"log"
"local/truckstop/logtr"
"strings"
"time"
)
@@ -65,7 +65,7 @@ func (j Job) FormatMultilineText() string {
out := ""
clients := config.Clients(j.Pickup.Date)
for k := range clients {
log.Printf("job multiline: %+v contains %s then use %v", clients[k].States, j.Pickup.State, k)
logtr.Debugf("job multiline: %+v contains %s then use %v", clients[k].States, j.Pickup.State, k)
if strings.Contains(fmt.Sprint(clients[k].States), j.Pickup.State) {
if len(out) > 0 {
out += "\n"