Skip to content

Commit

Permalink
added use to dispose of EventSink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Taggart committed Jun 18, 2015
1 parent 9ba9928 commit 36ea71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.PowerShell/PowerShell.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module PaketPs =
let processWithLogging (cmdlet:PSCmdlet) computation =
Environment.CurrentDirectory <- cmdlet.SessionState.Path.CurrentFileSystemLocation.Path
Logging.verbose <- cmdlet.Verbose
let sink = new EventSink<Logging.Trace>()
use sink = new EventSink<Logging.Trace>()

Logging.event.Publish |> sink.Fill (fun trace ->
match trace.Level with
Expand Down

0 comments on commit 36ea71b

Please sign in to comment.