Fix log messages
This commit is contained in:
parent
442dc10aac
commit
60053c7f3d
|
@ -195,7 +195,7 @@ namespace MediaBrowser.Common.Net
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new InvalidCastException("Host does not contain a valid value. {host}");
|
throw new InvalidCastException($"Host does not contain a valid value. {host}");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -220,7 +220,7 @@ namespace MediaBrowser.Common.Net
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new InvalidCastException("Host does not contain a valid value. {host}");
|
throw new InvalidCastException($"Host does not contain a valid value. {host}");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -433,7 +433,7 @@ namespace MediaBrowser.Common.Net
|
||||||
catch (SocketException ex)
|
catch (SocketException ex)
|
||||||
{
|
{
|
||||||
// Log and then ignore socket errors, as the result value will just be an empty array.
|
// Log and then ignore socket errors, as the result value will just be an empty array.
|
||||||
Debug.WriteLine("GetHostEntryAsync failed with {Message}.", ex.Message);
|
Debug.WriteLine("GetHostAddresses failed with {Message}.", ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user