This test wasn't working because the functionality it was supposed to test just wasn't implemented. Not sure if this code got lost somewhere in rollup or went wrong somewhere else.
Wax rewrote the --debuglog parameter to include both a path and a regular expression, but the parameter was ignored and the function call hardcoded to "./." (aka log every file in the CWD). Logging was enabled if --debuglog was set but otherwise it had no effect.
Changes:
Initiate the GlobalLogger in a new function (formerly init()) which is called in engine.Factomd, where the parameter can be passed to it
Use the node's name in the logger (formerly hardcoded as "fnodex")
Rewrite the unit test to use the golang built in functions to create temporary directories instead of doing it manually
This test wasn't working because the functionality it was supposed to test just wasn't implemented. Not sure if this code got lost somewhere in rollup or went wrong somewhere else.
Wax rewrote the --debuglog parameter to include both a path and a regular expression, but the parameter was ignored and the function call hardcoded to "./." (aka log every file in the CWD). Logging was enabled if --debuglog was set but otherwise it had no effect.
Changes:
init()
) which is called inengine.Factomd
, where the parameter can be passed to it