Log container's mac address to ease debugging

This commit is contained in:
Fabio Rehm 2013-09-28 01:34:26 -03:00
parent bcfb7b3e00
commit ecc862f6cb

View file

@ -17,7 +17,7 @@ module Vagrant
ip = nil ip = nil
10.times do 10.times do
dnsmasq_leases = read_dnsmasq_leases dnsmasq_leases = read_dnsmasq_leases
@logger.debug 'Attempting to load ip from dnsmasq leases' @logger.debug "Attempting to load ip from dnsmasq leases (mac: #{mac_address})"
@logger.debug dnsmasq_leases @logger.debug dnsmasq_leases
if dnsmasq_leases =~ /#{Regexp.escape mac_address}\s+([0-9.]+)\s+/ if dnsmasq_leases =~ /#{Regexp.escape mac_address}\s+([0-9.]+)\s+/
ip = $1.to_s ip = $1.to_s