Added exception for logs which are way too long

Intellij didn't show that for some reason, fixed