MCPcopy Create free account
hub / github.com/dagger/dagger / withUnsignedIntField

Function withUnsignedIntField

cmd/engine/debug.go:232–234  ·  view source on GitHub ↗
(l *logrus.Entry, name string, value T)

Source from the content-addressed store, hash-verified

230}
231
232func withUnsignedIntField[T constraints.Unsigned](l *logrus.Entry, name string, value T) *logrus.Entry {
233 return l.WithField(name, strconv.FormatUint(uint64(value), 10))
234}
235
236func withSignedIntField[T constraints.Signed](l *logrus.Entry, name string, value T) *logrus.Entry {
237 return l.WithField(name, strconv.FormatInt(int64(value), 10))

Callers 1

logMetricsFunction · 0.85

Calls 1

WithFieldMethod · 0.45

Tested by

no test coverage detected