lib/phut/vhost_daemon.rb in phut-0.6.2 vs lib/phut/vhost_daemon.rb in phut-0.6.3
- old
+ new
@@ -47,10 +47,10 @@
end
private
def start_logging
- @logger = Logger.new(log_file)
+ @logger = Logger.new(File.open(log_file, 'a'))
@logger.info("#{@options.fetch(:name)} started " \
"(interface = #{@options.fetch(:interface)}," \
" IP address = #{@options.fetch(:ip_address)}," \
" MAC address = #{@options.fetch(:mac_address)}," \
" arp_entries = #{@options.fetch(:arp_entries)})")