Skip to content

Commit

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

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

throw;
}
}

Expand Down

0 comments on commit a2ba49b

Please sign in to comment.