Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OdbGraph shows confusing log message about node initialization #75

Open
ursachec opened this issue Apr 3, 2020 · 0 comments
Open

OdbGraph shows confusing log message about node initialization #75

ursachec opened this issue Apr 3, 2020 · 0 comments

Comments

@ursachec
Copy link

ursachec commented Apr 3, 2020

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

final Set<Map.Entry<Long, byte[]>> serializedNodes = storage.allNodes();
logger.info("initializing " + serializedNodes.size() + " nodes from existing storage - this may take some time");

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()
  )
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant