File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 4
4
"context"
5
5
bgpapi "github.com/osrg/gobgp/v3/api"
6
6
bgpsrv "github.com/osrg/gobgp/v3/pkg/server"
7
- "github.com/rs/zerolog"
8
-
9
- //"github.com/cornelk/hashmap"
10
7
"github.com/red55/bgp-dns/internal/config"
11
8
"github.com/red55/bgp-dns/internal/log"
12
9
"github.com/red55/bgp-dns/internal/loop"
@@ -41,7 +38,7 @@ func Serve(ctx context.Context) (e error) {
41
38
_bgp = & bgpSrv {
42
39
Loop : loop .NewLoop (1 ),
43
40
Log : log .NewLog (log .L (), "bgp" ),
44
- bgp : bgpsrv .NewBgpServer (bgpsrv .LoggerOption (newZeroLogger (zerolog . InfoLevel ))),
41
+ bgp : bgpsrv .NewBgpServer (bgpsrv .LoggerOption (newZeroLogger (cfg . Log . Level ))),
45
42
//ipRefCounter: hashmap.New[string, *atomic.Uint64](),
46
43
ipRefCounter : make (map [string ]* atomic.Uint64 ),
47
44
asn : cfg .Bgp .Asn ,
You can’t perform that action at this time.
0 commit comments