now logging on file and check if stats are none

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>