upload log at night