Skip to content

Commit

Permalink
Fix improper usages of logger.Warn
Browse files Browse the repository at this point in the history
The format string was missing the format specifier.

Signed-off-by: Maria Shaldibina <[email protected]>
  • Loading branch information
krishicks committed Oct 13, 2014
1 parent 5ea9566 commit 6868207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/config_drive_metadata_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (ms *configDriveMetadataService) load() error {
return nil
}

ms.logger.Warn(ms.logTag, "Failed to load config from %s", diskPath, err)
ms.logger.Warn(ms.logTag, "Failed to load config from %s - %s", diskPath, err.Error())
}

return err
Expand Down
2 changes: 1 addition & 1 deletion platform/linux_platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (p linux) SetupEphemeralDiskWithPath(realPath string) error {
if err != nil {
_, isInsufficentSpaceError := err.(insufficientSpaceError)
if isInsufficentSpaceError {
p.logger.Warn(logTag, "No partitions created on root device, using root partition as ephemeral disk", err)
p.logger.Warn(logTag, "No partitions created on root device, using root partition as ephemeral disk - %s", err.Error())
return nil
}

Expand Down

0 comments on commit 6868207

Please sign in to comment.