Reports exception to logger where it used to go to console only.

This commit is contained in:
Paulo Rogerio Panhoto 2018-03-01 12:02:22 -03:00
parent aae366d33c
commit b98914ed55

View file

@ -258,10 +258,11 @@ namespace TLSharp.Core.Network
{ {
UpdatesEvent (update); UpdatesEvent (update);
} }
return true;
} }
catch (Exception ex) catch (Exception ex)
{ {
Console.WriteLine (ex); logger.Error($"HandleUpdate failed: {ex}");
} }
return false; return false;
} }