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
Plugin version: 2.0.7 OS: Android 9 (Real device, and emulator)
Description When there are many log files, the log files are not automatically removed. The following error is written to the log file
SEVERE ERROR: could not clean up old files. [object Object]
This is because removeFile() always fails
Expected behaviour Old log files are deleted as expected.
Detail Upon investigating the code, I suspect the filePath used is invalid.
private removeFile(entry: Entry): Promise<any> { this.debug_metaLog('Removing file: ' + entry.fullPath); const fullPath = entry.fullPath; const path = fullPath.replace(entry.name, ''); // THIS IS THE PROBLEM return this.file.removeFile(this.config.baseDir + path, entry.name); }
I believe the fix should be to use the log directory
const path = this.config.logDir;
The text was updated successfully, but these errors were encountered:
Thanks for the report! We're likely to be doing some maintenance work on this repo in the near future, so we'll look into it then
Sorry, something went wrong.
No branches or pull requests
Plugin version: 2.0.7
OS: Android 9 (Real device, and emulator)
Description
When there are many log files, the log files are not automatically removed.
The following error is written to the log file
This is because removeFile() always fails
Expected behaviour
Old log files are deleted as expected.
Detail
Upon investigating the code, I suspect the filePath used is invalid.
I believe the fix should be to use the log directory
The text was updated successfully, but these errors were encountered: