Set logfile var in central place for build_snapshot_looped and try to clean them with cleaning functions
Set logfile var in central place for build_snapshot_looped and try to clean them with cleaning functions