Skip to content

Commit

Permalink
move logging to more proper place
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 13, 2014
1 parent b9ec698 commit 9405020
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/include/bootloader/grub2/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def grub_LocationProposal
if !Mode.autoinst && !Mode.autoupgrade
changes = ::Bootloader::DiskChangeDetector.new.changes
if !changes.empty?
log.info "Location change detected"
if BootCommon.askLocationResetPopup(changes.join("\n"))
assign_bootloader_device(:none)
Builtins.y2milestone("Reconfiguring locations")
Expand Down
5 changes: 0 additions & 5 deletions src/lib/bootloader/disk_change_detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module Bootloader
# during installation, so bootloader configuration can be invalid.
class DiskChangeDetector
include Yast::I18n
include Yast::Logger

def initialize
Yast.import "BootCommon"
Expand Down Expand Up @@ -50,10 +49,6 @@ def changes
Yast::BootCommon.globals["boot_custom"]
end

if !ret.empty?
log.info "Location should be set again"
end

ret
end

Expand Down

0 comments on commit 9405020

Please sign in to comment.