# File lib/puppet/util/log.rb, line 451 451: def Log.reopen 452: Puppet.notice "Reopening log files" 453: types = @destinations.keys 454: @destinations.each { |type, dest| 455: if dest.respond_to?(:close) 456: dest.close 457: end 458: } 459: @destinations.clear 460: # We need to make sure we always end up with some kind of destination 461: begin 462: types.each { |type| 463: Log.newdestination(type) 464: } 465: rescue => detail 466: if @destinations.empty? 467: Log.newdestination(:syslog) 468: Puppet.err detail.to_s 469: end 470: end 471: end