Skip to content

Commit

Permalink
Fix #467 and add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
domialex committed Oct 3, 2020
1 parent 884472c commit 224ac98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public async Task<FetchResult<string>> SearchBulk(Item item)
{
var responseMessage = await response?.Content?.ReadAsStringAsync();
logger.Error("Querying failed: {responseCode} {responseMessage}", response.StatusCode, responseMessage);
logger.Error("Uri: {uri}", uri);
logger.Error("Query: {query}", json);
}
}
catch (Exception ex)
Expand Down Expand Up @@ -176,6 +178,8 @@ public async Task<FetchResult<string>> Search(Item item, SearchFilters filters =
{
var responseMessage = await response?.Content?.ReadAsStringAsync();
logger.Error("Querying failed: {responseCode} {responseMessage}", response.StatusCode, responseMessage);
logger.Error("Uri: {uri}", uri);
logger.Error("Query: {query}", json);
}
}
catch (Exception ex)
Expand Down
4 changes: 2 additions & 2 deletions src/Sidekick/Views/Settings/SettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
<Label Content="{loc:Loc Character_League}" />
<ComboBox
Grid.Column="1"
DisplayMemberPath="Key"
DisplayMemberPath="Value"
ItemsSource="{Binding Path=LeagueOptions}"
SelectedValue="{Binding Path=Settings.LeagueId}"
SelectedValuePath="Value" />
SelectedValuePath="Key" />
<Label Grid.Row="1" Content="{loc:Loc Character_Name}" />
<TextBox
Grid.Row="1"
Expand Down

0 comments on commit 224ac98

Please sign in to comment.