1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

No tracing b/c it breaks output

This commit is contained in:
Timothy Clem 2018-05-14 15:19:09 -07:00
parent 888fea5c29
commit 628aa27ccb

View File

@ -167,13 +167,11 @@ runParser blob@Blob{..} parser = case parser of
time "parse.tree_sitter_ast_parse" languageTag $
IO.rethrowing (parseToAST language blob)
AssignmentParser parser assignment -> do
trace ("Parsing " <> blobPath)
ast <- runParser blob parser `catchError` \ (SomeException err) -> do
writeStat (Stat.increment "parse.parse_failures" languageTag)
writeLog Error "failed parsing" (("task", "parse") : blobFields)
throwError (toException err)
options <- ask
trace ("Assigning " <> blobPath)
time "parse.assign" languageTag $
case Assignment.assign blobSource assignment ast of
Left err -> do