update deps; switch to goutils syslog.

This commit is contained in:
2023-05-05 07:13:46 +00:00
parent 7b7f1ea8a9
commit c475287fb1
17 changed files with 139 additions and 234 deletions

View File

@@ -7,9 +7,9 @@ go_library(
visibility = ["//visibility:private"],
deps = [
"//config",
"//log",
"//server",
"@com_github_peterbourgon_ff_v3//ffcli",
"@dev_wntrmute_git_kyle_goutils//syslog",
],
)

View File

@@ -6,8 +6,8 @@ import (
"os"
"strings"
log "git.wntrmute.dev/kyle/goutils/syslog"
"git.wntrmute.dev/kyle/kdhcp/config"
"git.wntrmute.dev/kyle/kdhcp/log"
"git.wntrmute.dev/kyle/kdhcp/server"
"github.com/peterbourgon/ff/v3/ffcli"
)
@@ -21,7 +21,7 @@ func main() {
flag.Parse()
logLevel = strings.ToUpper(logLevel)
log.Setup(logLevel, "kdhcpd")
log.Setup(log.DefaultDebugOptions("kdhcpd", false))
root := &ffcli.Command{
Exec: func(ctx context.Context, args []string) error {