From 5b8219d107a0564254683e9bc386380388f454b9 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 14 Jun 2025 07:39:08 +0100 Subject: [PATCH] swap out logrus for charmbracelet/log --- option.go | 2 +- packet.go | 4 ++-- udpconn.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/option.go b/option.go index 55ca723..bb00187 100644 --- a/option.go +++ b/option.go @@ -3,7 +3,7 @@ package vbantxt import ( "time" - log "github.com/sirupsen/logrus" + "github.com/charmbracelet/log" ) // Option is a functional option type that allows us to configure the VbanTxt. diff --git a/packet.go b/packet.go index 380172f..d335d0a 100644 --- a/packet.go +++ b/packet.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/binary" - log "github.com/sirupsen/logrus" + "github.com/charmbracelet/log" ) const ( @@ -70,5 +70,5 @@ func (p *packet) bumpFrameCounter() { x := binary.LittleEndian.Uint32(p.framecounter) binary.LittleEndian.PutUint32(p.framecounter, x+1) - log.Tracef("framecounter: %d", x) + log.Debugf("framecounter: %d", x) } diff --git a/udpconn.go b/udpconn.go index 81ed490..2454b1d 100644 --- a/udpconn.go +++ b/udpconn.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - log "github.com/sirupsen/logrus" + "github.com/charmbracelet/log" ) // udpConn represents the UDP client.