Skip to content

Commit

Permalink
Disable logcollector in vic-cloud since it keeps refreshing the token
Browse files Browse the repository at this point in the history
  • Loading branch information
kercre123 committed Jan 15, 2025
1 parent 6d91f41 commit c72ac94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Binary file modified vector-cloud/build/vic-cloud
Binary file not shown.
14 changes: 7 additions & 7 deletions vector-cloud/cloud/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/digital-dream-labs/vector-cloud/internal/ipc"
"github.com/digital-dream-labs/vector-cloud/internal/jdocs"
"github.com/digital-dream-labs/vector-cloud/internal/log"
"github.com/digital-dream-labs/vector-cloud/internal/logcollector"
"github.com/digital-dream-labs/vector-cloud/internal/robot"
"github.com/digital-dream-labs/vector-cloud/internal/token"
"github.com/digital-dream-labs/vector-cloud/internal/voice"
Expand Down Expand Up @@ -145,7 +144,7 @@ func main() {
ms := flag.Bool("ms", false, "force microsoft handling on the server end")
lex := flag.Bool("lex", false, "force amazon handling on the server end")

awsRegion := flag.String("region", "us-west-2", "AWS Region")
//awsRegion := flag.String("region", "us-west-2", "AWS Region")

flag.Parse()

Expand Down Expand Up @@ -207,11 +206,12 @@ func main() {
options = append(options, cloudproc.WithTokenOptions(tokenOpts...))
options = append(options, cloudproc.WithJdocs(jdocs.WithServer()))

logcollectorOpts := []logcollector.Option{logcollector.WithServer()}
logcollectorOpts = append(logcollectorOpts, logcollector.WithHTTPClient(getHTTPClient()))
logcollectorOpts = append(logcollectorOpts, logcollector.WithS3UrlPrefix(config.Env.LogFiles))
logcollectorOpts = append(logcollectorOpts, logcollector.WithAwsRegion(*awsRegion))
options = append(options, cloudproc.WithLogCollectorOptions(logcollectorOpts...))
// disable the STUPID log collector. holy shit
// logcollectorOpts := []logcollector.Option{logcollector.WithServer()}
// logcollectorOpts = append(logcollectorOpts, logcollector.WithHTTPClient(getHTTPClient()))
// logcollectorOpts = append(logcollectorOpts, logcollector.WithS3UrlPrefix(config.Env.LogFiles))
// logcollectorOpts = append(logcollectorOpts, logcollector.WithAwsRegion(*awsRegion))
//options = append(options, cloudproc.WithLogCollectorOptions(logcollectorOpts...))

cloudproc.Run(context.Background(), options...)

Expand Down

1 comment on commit c72ac94

@Vectoriano
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bro can you give to me a tutorial how to get a new sdk working

Please sign in to comment.