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

missing private instance field for max_file_size - added #22

Closed
wants to merge 1 commit into from
Closed

missing private instance field for max_file_size - added #22

wants to merge 1 commit into from

Conversation

kaagaj-bottle
Copy link

Is this issue already raised?

No

Chapter:

ch04-logtar-our-logging-library.md

Section Title:

The LogConfig class

Topic:

There was a missing declaration of the private instance field for the variable max_file_size inside the LogConfig class which caused an error while executing the code block

Copy link
Owner

@ishtms ishtms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kaagaj-bottle, thanks for the PR. I think there's an issue with this particular code snippet. I originally thought, while writing this section - to introduce the concept of max_file_size inside the LogConfig class itself.
But later on, it felt better to extract that into a RollingConfig class, with the member variable #size_threshold, alongside #time_threshold.

I'll update the content of this chapter to remove this, and update the code snippet to remove that unnecessary getter.

@ishtms
Copy link
Owner

ishtms commented Aug 29, 2023

The commit 6a3b499 solves this.

@ishtms ishtms closed this Aug 29, 2023
@ishtms
Copy link
Owner

ishtms commented Aug 29, 2023

In case the code in the future sections doens't runs, please raise an issue or PR. The correct code for each chapter can be found in the code directory

ishtms added a commit that referenced this pull request Aug 29, 2023
There are issues that people face while reading chapters. Since the content hasn't been re-read or revised by me, as I am in the writing phase - there can be issues with the code.
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

Successfully merging this pull request may close these issues.

2 participants