Skip to content

Commit

Permalink
Merge pull request #1 from panubo/feature/improve-createfilesystem-lo…
Browse files Browse the repository at this point in the history
…gging

Improve EBS informational logging when initialising or formating disk
  • Loading branch information
macropin authored Oct 3, 2023
2 parents b176422 + 8ee3be3 commit ecefe57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func prepAndMountDrives(volName string, vols []EbsVol) {
if filesystem.DoesDriveExist("/dev/disk/by-label/GOAT-" + volName) {
driveLogger.Info("Label already exists, jumping to mount phase")
} else {
driveLogger.Info("Label does not exist. Initialising disk/array")
var driveName string
var err error
if len(vols) == 1 {
Expand Down Expand Up @@ -93,6 +94,8 @@ func prepAndMountDrives(volName string, vols []EbsVol) {
}
if err := filesystem.CreateFilesystem(driveName, desiredFs, volName); err != nil {
driveLogger.Fatalf("Error when creating filesystem: %v", err)
} else {
driveLogger.Info("Filesystem created successfully")
}
}

Expand Down

0 comments on commit ecefe57

Please sign in to comment.