Handle strange log line format