Skip to content

Commit

Permalink
APP-5248 use NetAppender in agent (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter authored Jun 24, 2024
1 parent 0ae54b9 commit a7d7136
Show file tree
Hide file tree
Showing 12 changed files with 602 additions and 102 deletions.
6 changes: 3 additions & 3 deletions cmd/viam-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"syscall"
"time"

"github.com/edaniels/golog"
"github.com/jessevdk/go-flags"
"github.com/nightlyone/lockfile"
"github.com/pkg/errors"
Expand All @@ -24,14 +23,15 @@ import (
"github.com/viamrobotics/agent/subsystems/syscfg"
"github.com/viamrobotics/agent/subsystems/viamagent"
"github.com/viamrobotics/agent/subsystems/viamserver"
"go.viam.com/rdk/logging"
"go.viam.com/utils"
)

var (
activeBackgroundWorkers sync.WaitGroup

// only changed/set at startup, so no mutex.
globalLogger = golog.NewDevelopmentLogger("viam-agent")
globalLogger = logging.NewLogger("viam-agent")
)

//nolint:gocognit
Expand Down Expand Up @@ -68,7 +68,7 @@ func main() {
}

if opts.Debug {
globalLogger = golog.NewDebugLogger("viam-agent")
globalLogger = logging.NewDebugLogger("viam-agent")
provisioning.Debug = true
syscfg.Debug = true
}
Expand Down
29 changes: 17 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ module github.com/viamrobotics/agent
go 1.21.4

require (
github.com/edaniels/golog v0.0.0-20230215213219-28954395e8d0
github.com/jessevdk/go-flags v1.5.0
github.com/nightlyone/lockfile v1.0.0
github.com/pkg/errors v0.9.1
github.com/ulikunitz/xz v0.5.12
go.uber.org/zap v1.27.0
go.viam.com/api v0.1.295
go.viam.com/utils v0.1.75
go.viam.com/api v0.1.311
go.viam.com/rdk v0.29.1-0.20240621181334-bbc9158952e9
go.viam.com/test v1.1.1-0.20220913152726-5da9916c08a2
go.viam.com/utils v0.1.82
golang.org/x/sys v0.20.0
)

Expand All @@ -20,13 +21,15 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/edaniels/golog v0.0.0-20230215213219-28954395e8d0 // indirect
github.com/edaniels/zeroconf v1.0.10 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/securecookie v1.1.1 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect
Expand All @@ -42,22 +45,24 @@ require (
github.com/montanaflynn/stats v0.7.1 // indirect
github.com/pion/datachannel v1.5.5 // indirect
github.com/pion/dtls/v2 v2.2.7 // indirect
github.com/pion/ice/v2 v2.3.13 // indirect
github.com/pion/ice/v2 v2.3.24 // indirect
github.com/pion/interceptor v0.1.25 // indirect
github.com/pion/logging v0.2.2 // indirect
github.com/pion/mdns v0.0.12 // indirect
github.com/pion/randutil v0.1.0 // indirect
github.com/pion/rtcp v1.2.12 // indirect
github.com/pion/rtcp v1.2.14 // indirect
github.com/pion/rtp v1.8.5 // indirect
github.com/pion/sctp v1.8.14 // indirect
github.com/pion/sctp v1.8.16 // indirect
github.com/pion/sdp/v3 v3.0.9 // indirect
github.com/pion/srtp/v2 v2.0.18 // indirect
github.com/pion/stun v0.6.1 // indirect
github.com/pion/transport/v2 v2.2.4 // indirect
github.com/pion/turn/v2 v2.1.4 // indirect
github.com/pion/webrtc/v3 v3.2.36 // indirect
github.com/pion/webrtc/v3 v3.2.42 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/smartystreets/assertions v1.13.0 // indirect
github.com/srikrsna/protoc-gen-gotag v0.6.2 // indirect
github.com/stretchr/testify v1.9.0 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.1.2 // indirect
Expand All @@ -70,18 +75,18 @@ require (
go.uber.org/goleak v1.3.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/oauth2 v0.13.0 // indirect
golang.org/x/sync v0.4.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/tools v0.14.0 // indirect
golang.org/x/tools v0.17.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
nhooyr.io/websocket v1.8.9 // indirect
Expand Down
Loading

0 comments on commit a7d7136

Please sign in to comment.