minor
change in what is logged as IP address
fixed a logging bug