if log is empty donothing