nathansttt / hog2

Pathfinding and search testbed/visualization suite. Current code is in PDB-refactor branch.
MIT License
111 stars 54 forks source link

Silence ToH PDB Building Output #90

Closed lior8 closed 2 months ago

lior8 commented 3 months ago

Building a ToH PDB outputs a lot of logs which I think should be hidden by default. There are generally two ideas I think about, and one that can be used (very) long term:

  1. Have a bool silence parameter which will silence all logging from the PDB.
  2. Have u_int verbosity which will give us some finer control, though as it stands, it will be identical to the silence.
  3. Have a proper logging framework / set of macros which then the logging verbosity will be defined as part of the compilation (like a headless version). Option 3 will take a lot of time, so which of options 1 and 2 do you prefer @nathansttt? Of course there is always the option of keeping things as-is and then I'll simply silence it in private repos.
lior8 commented 2 months ago

I looked at it, and it seems like a verbosity flag was indeed added to the BuildPDB function.