only log if dev or prod