Skip to content

Commit 6b9afad

Browse files
Merge pull request #19 from rocketsciencegg/chore/improve-poll-logging
feat(rocketscience): adds error logging on poll failure
2 parents 23dfb4a + 74ff32d commit 6b9afad

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ assignees: ''
1313
<!-- Which provider integration is affected? -->
1414
- [ ] GameLift
1515
- [ ] Multiplay
16+
- [ ] Multiplay by Rocket Science
1617
- [ ] PlayFab
1718
- [ ] Other (please specify)
1819

1920
## Steps to Reproduce
2021
<!-- Provide detailed steps to reproduce the issue -->
21-
1.
22-
2.
23-
3.
22+
1.
23+
2.
24+
3.
2425

2526
## Expected Behavior
2627
<!-- What did you expect to happen? -->
@@ -29,10 +30,10 @@ assignees: ''
2930
<!-- What actually happened? -->
3031

3132
## Environment
32-
- Unity Version:
33-
- UGS CLI Version:
34-
- .NET SDK Version:
35-
- Operating System:
33+
- Unity Version:
34+
- UGS CLI Version:
35+
- .NET SDK Version:
36+
- Operating System:
3637

3738
## Additional Context
3839
<!-- Add any other context, logs, or screenshots about the problem here -->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ assignees: ''
1919
<!-- Which provider integration would this affect? -->
2020
- [ ] GameLift
2121
- [ ] Multiplay
22+
- [ ] Multiplay by Rocket Science
2223
- [ ] PlayFab
2324
- [ ] New Provider Integration
2425
- [ ] General/All

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ assignees: ''
1313
<!-- Which provider integration is your question about? -->
1414
- [ ] GameLift
1515
- [ ] Multiplay
16+
- [ ] Multiplay by Rocket Science
1617
- [ ] PlayFab
1718
- [ ] General
1819

modules/RocketScienceAllocator/Project/RocketScienceAllocator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ public async Task<PollResponse> Poll(IExecutionContext context, PollRequest requ
122122
var responseContent = await allocation.Content.ReadAsStringAsync();
123123
if (!allocation.IsSuccessStatusCode)
124124
{
125+
logger.LogError("Error polling allocation {error}", responseContent);
126+
125127
return new PollResponse(PollStatus.Error)
126128
{
127129
Message = responseContent

0 commit comments

Comments
 (0)