Skip to content

Commit

Permalink
Comment out logging until preview 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Feb 19, 2020
1 parent 7e526de commit f5a25b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Equinox.EventStore.Grpc/EventStoreGrpc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ type Resolver<'event, 'state, 'context>
member __.FromMemento(Token.Unpack token as streamToken, state, ?context) =
Stream.ofMemento (streamToken, state) (resolveStream token.stream.name context None)

#if PREVIEW3 // - there's no logging implemented in V3 as yet, so disabling for now
type private SerilogAdapter(log : ILogger) =
interface EventStore.ClientAPI.ILogger with
member __.Debug(format : string, args : obj []) = log.Debug(format, args)
Expand All @@ -587,6 +588,7 @@ type Logger =
| SerilogNormal logger -> b.UseCustomLogger(SerilogAdapter(logger))
| CustomVerbose logger -> b.EnableVerboseLogging().UseCustomLogger(logger)
| CustomNormal logger -> b.UseCustomLogger(logger)
#endif

[<RequireQualifiedAccess; NoComparison>]
type NodePreference =
Expand Down

0 comments on commit f5a25b4

Please sign in to comment.