Add IP to logging middleware