We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Because we are lazily reading in the entire JSON log file each time we want to add a new entry, the amount of memory we use also grows with the file.
Instead, Logger.Log(c Connection) should append a new JSON record to the file without reading the entire file in. ioutil.ReadFile(l.fileName) is bad.
Logger.Log(c Connection)
ioutil.ReadFile(l.fileName)
Steps to fix:
Logger.Log
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Because we are lazily reading in the entire JSON log file each time we want to add a new entry, the amount of memory we use also grows with the file.
Instead,
Logger.Log(c Connection)
should append a new JSON record to the file without reading the entire file in.ioutil.ReadFile(l.fileName)
is bad.Steps to fix:
ioutil.ReadFile(l.fileName)
Logger.Log
, append the JSON as bytes to the fileThe text was updated successfully, but these errors were encountered: