handle --list-ctx when there is no log file