fix log to use the right thing