Skip to content

Commit

Permalink
extra logs added (#562)
Browse files Browse the repository at this point in the history
extra logs added
  • Loading branch information
sleushunou authored Sep 25, 2024
1 parent 1300fce commit 035d60e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Softeq.XToolkit.Common.iOS/Extensions/NSStringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,22 @@ public static NSMutableAttributedString BuildAttributedStringFromHtml(
catch (Exception ex)
{
logger?.Error(ex);
if (html == null)
{
logger?.Error("String: null");
}
else
{
logger?.Error("String: " + html);
}

throw;
}
finally
{
if (error != null)
{
logger?.Info("Error message: " + error.Description);
logger?.Error("Error message: " + error.Description);
}
}
}
Expand Down

0 comments on commit 035d60e

Please sign in to comment.