Fixed logging before log was even open