fix warning CS0162: Unreachable code detected in Log.cs