reactlog code cleanup