Skip to content

Commit

Permalink
Fix for #324
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Jan 6, 2017
1 parent 9227d85 commit 7ec0844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/canopy/reporters.fs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ type ConsoleReporter() =

member this.setEnvironment env = ()

type TeamCityReporter() =
type TeamCityReporter(?logImagesToConsole: bool) =
let logImagesToConsole = defaultArg logImagesToConsole true

let flowId = System.Guid.NewGuid().ToString()

Expand All @@ -135,7 +136,7 @@ type TeamCityReporter() =
member this.fail ex id ss url =
let mutable image = ""
if not (Array.isEmpty ss) then
if not (Array.isEmpty ss) && logImagesToConsole then
image <- String.Format("canopy-image({0})", Convert.ToBase64String(ss))
teamcityReport (sprintf "testFailed name='%s' message='%s' details='%s'"
Expand Down

0 comments on commit 7ec0844

Please sign in to comment.