@@ -64,12 +64,12 @@ main = do
64
64
liftIO $ (cb1 <> cb2) env
65
65
}
66
66
67
- let (minPriority, logFilePath, includeExamplePlugins) =
67
+ let (argsTesting, minPriority, logFilePath, includeExamplePlugins) =
68
68
case args of
69
69
Ghcide GhcideArguments { argsTesting, argsDebugOn, argsLogFile, argsExamplePlugin } ->
70
70
let minPriority = if argsDebugOn || argsTesting then Debug else Info
71
- in (minPriority, argsLogFile, argsExamplePlugin)
72
- _ -> (Info , Nothing , False )
71
+ in (argsTesting, minPriority, argsLogFile, argsExamplePlugin)
72
+ _ -> (False , Info , Nothing , False )
73
73
74
74
withDefaultRecorder logFilePath Nothing minPriority $ \ textWithPriorityRecorder -> do
75
75
let
@@ -85,7 +85,7 @@ main = do
85
85
& cmapWithPrio (renderStrict . layoutPretty defaultLayoutOptions . fst )
86
86
-- do not log heap stats to the LSP log as they interfere with the
87
87
-- ability of lsp-test to detect a stuck server in tests and benchmarks
88
- & cfilter (not . heapStats . snd . payload)
88
+ & if argsTesting then cfilter (not . heapStats . snd . payload) else id
89
89
]
90
90
plugins = (Plugins. idePlugins (cmapWithPrio LogPlugins recorder) includeExamplePlugins)
91
91
0 commit comments