Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinmoris committed Sep 30, 2018
2 parents 3035b89 + 09bae8c commit 1fd62b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BuildStats/BuildStats.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Version>5.5.0</Version>
<Version>5.6.0</Version>
<AssemblyName>BuildStats</AssemblyName>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
2 changes: 1 addition & 1 deletion src/BuildStats/HttpClients.fs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type CircuitBreakerHttpClient (httpClient : IResilientHttpClient,
| true -> return response
| false ->
let breakDuration = getBreakDuration response
logger.LogWarning("Request to '{url}' has failed. Breaking circuit for: {seconds}sec.", request.RequestUri, breakDuration.TotalSeconds)
logger.LogWarning("Request to '{url}' has failed (Http status code: {statusCode}). Breaking circuit for: {seconds}sec.", request.RequestUri, response.StatusCode, breakDuration.TotalSeconds)
brokenSince <- DateTime.Now
isBrokenCircuit <- true
return response
Expand Down
2 changes: 1 addition & 1 deletion src/BuildStats/Web.fs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ let cssHandler (bundle : string) =

let cachedSvg (body : string) =
responseCaching
(Public (TimeSpan.FromSeconds 60.0))
(Public (TimeSpan.FromSeconds 180.0))
(Some "Accept-Encoding")
(Some [| "includePreReleases"; "includeBuildsFromPullRequest"; "buildCount"; "showStats"; "authToken" |])
>=> setHttpHeader "Content-Type" "image/svg+xml"
Expand Down

0 comments on commit 1fd62b6

Please sign in to comment.