Automatic merge from submit-queue (batch tested with PRs 44741, 44853, 44572, 44797, 44439) Check errors before logging providers The logProviders() should check errors firstly, and do not log providers when providers is null.