error_log queries during upgrade

Change-Id: I5f8f1202be2f626db5f26899efe914417e6fb741