Replace printed warning with logger.warning
Fix inconsistent warning messages:
TEST_SESSION [1]: scan = loopscan(50, 0.1, diode)
Warning: scan data are currently saved under /tmp, where files are volatile.
WARNING: metadata gathering took 198.130ms, type 'metadata_profiling()' for more details
...