Remove monitoring debug statement.
This commit is contained in:
@ -4,14 +4,11 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
|
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
|
||||||
"github.com/influxdata/influxdb-client-go/v2/api/write"
|
"github.com/influxdata/influxdb-client-go/v2/api/write"
|
||||||
"github.com/openHPI/poseidon/pkg/logging"
|
|
||||||
"github.com/openHPI/poseidon/pkg/monitoring"
|
"github.com/openHPI/poseidon/pkg/monitoring"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logging.GetLogger("storage")
|
|
||||||
|
|
||||||
// Storage is an interface for storing objects.
|
// Storage is an interface for storing objects.
|
||||||
type Storage[T any] interface {
|
type Storage[T any] interface {
|
||||||
// List returns all objects from the storage.
|
// List returns all objects from the storage.
|
||||||
@ -157,7 +154,6 @@ func (s *localStorage[T]) Length() uint {
|
|||||||
|
|
||||||
func (s *localStorage[T]) unsafeLength() uint {
|
func (s *localStorage[T]) unsafeLength() uint {
|
||||||
length := len(s.objects)
|
length := len(s.objects)
|
||||||
log.WithField("length_int", length).WithField("length_uint", uint(length)).Debug("Storage info")
|
|
||||||
return uint(length)
|
return uint(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user