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

Lazy initialize TextLog._logWriter #3023

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Conversation

ZakFahey
Copy link
Contributor

@ZakFahey ZakFahey commented Feb 18, 2024

There is an instance of this in SqlLog that's used as a backup, but since the StreamWriter is created in the constructor, the file is created too. This means that you'll get an empty text log created every time a server starts up, even if you have text logs disabled. This is especially problematic when you have a multi-server setup with file write conflicts.

There is an instance of this in SqlLog that's used as a backup, but since the StreamWriter is created in the constructor, the file is created too. This means that you'll get an empty text log created, every time a server starts up, even if you have text logs disabled. This is especially problematic when you have a multi-server setup with file write conflicts.
@QuiCM QuiCM merged commit 787fe92 into Pryaxis:general-devel Apr 13, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants