try/catch for log parsing