Make shared preferences ex logging conditional again