Skip to content

Commit

Permalink
Fix broken script
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetricek committed Sep 11, 2015
1 parent 54cba7f commit af30de4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.10.2 (12 September, 2015)
- Fix load script (wrap logging setup in try catch properly)

## 2.10.1 (12 September, 2015)
- paket update && fix compilation (#338)
- Wrap logging setup in try catch
Expand Down
4 changes: 2 additions & 2 deletions packages/FSharp.Formatting/FSharp.Formatting.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ if (typeof<System.Web.Razor.ParserResults>.Assembly.GetName().Version.Major <= 2
#r "FSharp.MetadataFormat.dll"

// Setup Logging for FSharp.Formatting and Yaaf.FSharp.Scripting
module Logging = FSharp.Formatting.Common.Log
type TraceOptions = System.Diagnostics.TraceOptions
try
let svclogFile = "FSharp.Formatting.svclog"
let logFile = "FSharp.Formatting.log"
[ svclogFile; logFile ] |> Seq.iter (fun f -> if System.IO.File.Exists f then System.IO.File.Delete f)

module Logging = FSharp.Formatting.Common.Log
type TraceOptions = System.Diagnostics.TraceOptions
System.Diagnostics.Trace.AutoFlush <- true
let allTraceOptions = TraceOptions.Callstack ||| TraceOptions.DateTime ||| TraceOptions.LogicalOperationStack |||
TraceOptions.ProcessId ||| TraceOptions.ThreadId ||| TraceOptions.Timestamp
Expand Down
6 changes: 3 additions & 3 deletions src/Common/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ open System.Reflection
[<assembly: AssemblyTitleAttribute("FSharp.Formatting")>]
[<assembly: AssemblyProductAttribute("FSharp.Formatting")>]
[<assembly: AssemblyDescriptionAttribute("A package of libraries for building great F# documentation, samples and blogs")>]
[<assembly: AssemblyVersionAttribute("2.10.1")>]
[<assembly: AssemblyFileVersionAttribute("2.10.1")>]
[<assembly: AssemblyVersionAttribute("2.10.2")>]
[<assembly: AssemblyFileVersionAttribute("2.10.2")>]
[<assembly: AssemblyCopyrightAttribute("Apache 2.0 License")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] Version = "2.10.1"
let [<Literal>] Version = "2.10.2"

0 comments on commit af30de4

Please sign in to comment.