Skip to content

Commit

Permalink
Merge pull request #1058 from aboch/hdbg
Browse files Browse the repository at this point in the history
Log time taken to set sandbox key
  • Loading branch information
mrjana committed Mar 29, 2016
2 parents e5064dd + a23a326 commit a05a474
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net"
"strings"
"sync"
"time"

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

func (sb *sandbox) SetKey(basePath string) error {
start := time.Now()
defer func() {
log.Debugf("sandbox set key processing took %s for container %s", time.Now().Sub(start), sb.ContainerID())
}()

if basePath == "" {
return types.BadRequestErrorf("invalid sandbox key")
}
Expand Down

0 comments on commit a05a474

Please sign in to comment.