overflowdb
overflowdb copied to clipboard
`OdbGraph` shows confusing log message about node initialization
OdbGraph
should show a No nodes to initialize from current storage message instead of initializing 0 nodes from existing storage - this may take some time
https://github.com/ShiftLeftSecurity/overflowdb/blob/76faf725faad32a4c705cda53e935828c164a5c8/tinkerpop3/src/main/java/io/shiftleft/overflowdb/OdbGraph.java#L120-L121
Stumbled upon this small discrepancy while trying out Ocular.
ocular> workspace.openProject("HELLO_SHIFTLEFT")
Loading base CPG from: /home/ursachec/.shiftleft/ocular/workspace/HELLO_SHIFTLEFT/cpg.bin
Overlays:
2020-04-03 18:39:16.602 [HeapUsageMonitor] INFO installed GC monitors. will clear references if heap (after GC) is larger than 80%
2020-04-03 18:39:16.606 [OdbGraph] INFO initializing 0 nodes from existing storage - this may take some time
2020-04-03 18:39:16.607 [OdbGraph] INFO initialized odbgraph[nodes: 0] from existing storage in 4ms
res12: Option[workspacehandling.Project] = Some(
Project(
ProjectFile(
"/home/ursachec/code/HelloShiftLeft/target/hello-shiftleft-0.0.1.jar",
"HELLO_SHIFTLEFT"
),
/home/ursachec/.shiftleft/ocular/workspace/HELLO_SHIFTLEFT,
Some(io.shiftleft.codepropertygraph.Cpg@cd809c6f),
List()
)
)