Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
Removed redundant log messages
Browse files Browse the repository at this point in the history
If the details already available as API response, additional logging
for success is removed.

Signed-off-by: Aravinda VK <[email protected]>
  • Loading branch information
aravindavk authored and Madhu-1 committed Jan 4, 2019
1 parent 5dd1254 commit 0839909
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion glusterd2/commands/volumes/volume-delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func volumeDeleteHandler(w http.ResponseWriter, r *http.Request) {
return
}

logger.WithField("volume-name", volinfo.Name).Info("volume deleted")
events.Broadcast(volume.NewEvent(volume.EventVolumeDeleted, volinfo))

restutils.SendHTTPResponse(ctx, w, http.StatusNoContent, nil)
Expand Down
2 changes: 0 additions & 2 deletions glusterd2/commands/volumes/volume-option.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,6 @@ func volumeOptionsHandler(w http.ResponseWriter, r *http.Request) {
return
}

logger.WithField("volume-name", volinfo.Name).Info("volume options changed")

resp := createVolumeOptionResp(volinfo)
restutils.SendHTTPResponse(ctx, w, http.StatusOK, resp)
}
Expand Down
1 change: 0 additions & 1 deletion glusterd2/commands/volumes/volume-start.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ func volumeStartHandler(w http.ResponseWriter, r *http.Request) {
return
}

logger.WithField("volume-name", volinfo.Name).Info("volume started")
events.Broadcast(volume.NewEvent(volume.EventVolumeStarted, volinfo))

resp := createVolumeStartResp(volinfo)
Expand Down
1 change: 0 additions & 1 deletion glusterd2/commands/volumes/volume-stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ func volumeStopHandler(w http.ResponseWriter, r *http.Request) {
return
}

logger.WithField("volume-name", volinfo.Name).Info("volume stopped")
events.Broadcast(volume.NewEvent(volume.EventVolumeStopped, volinfo))

resp := createVolumeStopResp(volinfo)
Expand Down
1 change: 0 additions & 1 deletion glusterd2/volume/store-utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func GetVolume(name string) (*Volinfo, error) {
}

if resp.Count != 1 {
log.WithField("volume", name).Error("volume not found")
return nil, gderror.ErrVolNotFound
}

Expand Down
1 change: 0 additions & 1 deletion plugins/device/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func txnPrepareDevice(c transaction.TxnCtx) error {
}
return err
}
c.Logger().WithField("device", device).Info("Device setup successful, setting device status to 'Enabled'")

availableSize, extentSize, err := lvmutils.GetVgAvailableSize(deviceInfo.VgName())
if err != nil {
Expand Down

0 comments on commit 0839909

Please sign in to comment.