It seems that RTC battery is empty. Need to replace it. I assumed that initialization of RTC would throw an error in this case. But apparently, RTC init can be succesful while RTC battery is empty. String for LogFileDir
therefore is not generated properly causing the error