Logs couldnt be written - fixed

Signed-off-by: Lysander <lysandergc@gmail.com>