Skip to content

The program will panic when FileSpec.o_suffix is none. #116

Closed
@gamife

Description

@gamife

version: 0.23
When the log file is empty, the file_stem does not contain .restart-. So the unwrap() is not ok.

let index = file_stem.find(".restart-").unwrap(/*ok*/);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @emabee@gamife

        Issue actions

          The program will panic when FileSpec.o_suffix is none. · Issue #116 · emabee/flexi_logger