removing debug logging from the simnet containers.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
indra
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
go mod tidy
|
||||
|
||||
IPFS_LOGGING=info go run ./cmd/indra/. -lcl serve
|
||||
IPFS_LOGGING=info go run ./cmd/indra/. serve
|
||||
@@ -2,6 +2,7 @@ package metrics
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/indra-labs/indra"
|
||||
@@ -18,6 +19,10 @@ var (
|
||||
hostStatusInterval = 10 * time.Second
|
||||
)
|
||||
|
||||
var (
|
||||
mutex sync.Mutex
|
||||
)
|
||||
|
||||
func SetTimeout(key string, timeout time.Duration) {
|
||||
hostStatusInterval = timeout
|
||||
}
|
||||
@@ -26,6 +31,11 @@ func HostStatus(ctx context.Context, host host.Host) {
|
||||
|
||||
log.I.Ln("starting [metrics.hoststatus]")
|
||||
|
||||
// Guarding against multiple instantiations
|
||||
if !mutex.TryLock() {
|
||||
return
|
||||
}
|
||||
|
||||
for {
|
||||
|
||||
select {
|
||||
|
||||
@@ -8,15 +8,15 @@ var (
|
||||
// URL is the git URL for the repository.
|
||||
URL = "github.com/indra-labs/indra"
|
||||
// GitRef is the gitref, as in refs/heads/branchname.
|
||||
GitRef = "refs/heads/main"
|
||||
GitRef = "refs/heads/ind-bootstrap"
|
||||
// ParentGitCommit is the commit hash of the parent HEAD.
|
||||
ParentGitCommit = "4d6d252323febf8bb0d3f0783e02b762ca398e2d"
|
||||
ParentGitCommit = "398d6b8f0436d55b1cc92f14728709f643dcddf8"
|
||||
// BuildTime stores the time when the current binary was built.
|
||||
BuildTime = "2023-01-09T00:04:27Z"
|
||||
BuildTime = "2023-01-09T00:16:45Z"
|
||||
// SemVer lists the (latest) git tag on the release.
|
||||
SemVer = "v0.1.6"
|
||||
// PathBase is the path base returned from runtime caller.
|
||||
PathBase = "/home/loki/src/github.com/indra-labs/indra/"
|
||||
PathBase = "/home/lyo/Git/indra-labs/indra/"
|
||||
// Major is the major number from the tag.
|
||||
Major = 0
|
||||
// Minor is the minor number from the tag.
|
||||
|
||||
Reference in New Issue
Block a user