-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor error handling and async in durable function
- Changed the `UpdateChannel_Durable` function to be async in `Channel.cs` and removed the usage of `Task.Run` - Consolidated the error handling in the `Fc2Service` class to log and throw on general Exception instead of handling `HttpRequestException` separately. - In `TwitcastingService.cs`, `TwitchService.cs` and `YoutubeService.cs`, changed logging from "Warning" to "Error" when failing to get channel info and added throwing a `HttpRequestException`. - In `Fc2Service.cs`, changed the error logging message format to a more general one. Signed-off-by: 陳鈞 <[email protected]>
- Loading branch information
Showing
5 changed files
with
22 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters