Skip to content

Commit

Permalink
Update log format
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tbird committed Sep 28, 2015
1 parent 1b3b1d2 commit 4a6e555
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ func (d *rbdDriver) Create(r dkvolume.Request) dkvolume.Response {
// Parse the docker --volume option
pool, name, size, err := d.parsePoolNameSize(r.Name)
if err != nil {
log.Printf("ERROR: parsing volume: %s", err)
log.Printf("[Create] ERROR parsing volume: %s", err)
return dkvolume.Response{Err: err.Error()}
}

// Check if volume already exists
mountpoint := filepath.Join(d.volRoot, pool, name)
if _, found := d.volumes[mountpoint]; found {
log.Println("INFO: Volume is already in known mounts: " + mountpoint)
log.Println("[Create] INFO Volume is already in known mounts: " + mountpoint)
return dkvolume.Response{}
}

Expand All @@ -130,7 +130,7 @@ func (d *rbdDriver) Create(r dkvolume.Request) dkvolume.Response {
return dkvolume.Response{Err: err.Error()}
}
} else if err != nil {
log.Printf("ERROR: checking for RBD Image: %s", err)
log.Printf("[Create] ERROR checking for RBD Image: %s", err)
return dkvolume.Response{Err: err.Error()}
}

Expand Down Expand Up @@ -173,7 +173,7 @@ func (d *rbdDriver) Path(r dkvolume.Request) dkvolume.Response {
// Parse the docker --volume option
pool, name, _, err := d.parsePoolNameSize(r.Name)
if err != nil {
log.Printf("ERROR: parsing volume: %s", err)
log.Printf("[Path] ERROR parsing volume: %s", err)
return dkvolume.Response{Err: err.Error()}
}

Expand Down

0 comments on commit 4a6e555

Please sign in to comment.