check_file_size(): fixed wrong file name on logging

we've tried to open `path' file and in case of fail, we log that
we failed to open `log_file' instead of `path'

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>