mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Some space for these traces
This commit is contained in:
parent
73371b717c
commit
23e1359006
@ -157,13 +157,13 @@ runParser blob@Blob{..} parser = case parser of
|
||||
time "parse.tree_sitter_ast_parse" languageTag $
|
||||
IO.rethrowing (parseToAST language blob)
|
||||
AssignmentParser parser assignment -> do
|
||||
traceM ("Parsing" <> blobPath)
|
||||
traceM ("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
|
||||
traceM ("Assigning" <> blobPath)
|
||||
traceM ("Assigning " <> blobPath)
|
||||
time "parse.assign" languageTag $
|
||||
case Assignment.assign blobSource assignment ast of
|
||||
Left err -> do
|
||||
|
Loading…
Reference in New Issue
Block a user