Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs folder symlinked but files not opening #44

Open
arnoldski opened this issue Sep 13, 2024 · 2 comments
Open

Logs folder symlinked but files not opening #44

arnoldski opened this issue Sep 13, 2024 · 2 comments

Comments

@arnoldski
Copy link

Hi,

I've symlinked the entire Logs folder and are able to see the logs but I can't open them.
See screen recording. The owner and rights on the folder is correct.

Screen.Recording.2024-09-13.at.11.59.24.mp4
@michaelassey
Copy link

Hi,

I face the same issues, did you manage to find solution for it?

@christianhanne
Copy link

christianhanne commented Nov 14, 2024

Hi, I have the same issue unfortunately. No solution so far.

My guess is that this method is the problem:

    protected function fileResidesInLogDirs(string $logFile): bool
    {
        return collect(FilamentLaravelLogPlugin::get()->getLogDirs())
            ->contains(fn (string $logDir) => str_contains($logFile, $logDir));
    }

This checks the file before displaying it. Didn't test it, but I'd assume this won't work with symlinked directories, because the path will be different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants