Added logging for will enter foreground event