set f_log so errors don't crash prog