Skip to content

Commit a05a474

Browse files
committed
Merge pull request #1058 from aboch/hdbg
Log time taken to set sandbox key
2 parents e5064dd + a23a326 commit a05a474

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: sandbox.go

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"net"
88
"strings"
99
"sync"
10+
"time"
1011

1112
log "github.com/Sirupsen/logrus"
1213
"github.com/docker/libnetwork/etchosts"
@@ -536,6 +537,11 @@ func (sb *sandbox) resolveName(req string, networkName string, epList []*endpoin
536537
}
537538

538539
func (sb *sandbox) SetKey(basePath string) error {
540+
start := time.Now()
541+
defer func() {
542+
log.Debugf("sandbox set key processing took %s for container %s", time.Now().Sub(start), sb.ContainerID())
543+
}()
544+
539545
if basePath == "" {
540546
return types.BadRequestErrorf("invalid sandbox key")
541547
}

0 commit comments

Comments
 (0)