trace logging to debug an intermittent failure