Skip to content

Commit

Permalink
Minor UWP example improvement.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d4b911b02877b7c911d360daa384c029cc5a0cf3
  • Loading branch information
levlam committed Aug 30, 2018
1 parent cb165ad commit d125e11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/uwp/app/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ public MainPage()
Items = new System.Collections.ObjectModel.ObservableCollection<string>();
_handler = new MyClientResultHandler(this);

Td.Log.SetFilePath(Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "log"));
Td.Log.SetVerbosityLevel(20);

System.Threading.Tasks.Task.Run(() =>
{
try
{
Td.Log.SetFilePath(Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "log"));
_client = Td.Client.Create(_handler);
var parameters = new TdApi.TdlibParameters();
parameters.DatabaseDirectory = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
Expand Down

0 comments on commit d125e11

Please sign in to comment.