Title: [BUG] removeFile() function does not work · Issue #11 · SmartMoveSystems/ionicLogFileAppender · GitHub
Open Graph Title: [BUG] removeFile() function does not work · Issue #11 · SmartMoveSystems/ionicLogFileAppender
X Title: [BUG] removeFile() function does not work · Issue #11 · SmartMoveSystems/ionicLogFileAppender
Description: 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 f...
Open Graph Description: 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 fil...
X Description: 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 fil...
Opengraph URL: https://github.com/SmartMoveSystems/ionicLogFileAppender/issues/11
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] removeFile() function does not work","articleBody":"Plugin version: 2.0.7\r\nOS: Android 9 (Real device, and emulator)\r\n\r\n**Description**\r\nWhen there are many log files, the log files are not automatically removed.\r\nThe following error is written to the log file\r\n\r\n\u003e SEVERE ERROR: could not clean up old files. [object Object]\r\n\r\nThis is because removeFile() always fails\r\n\r\n**Expected behaviour**\r\nOld log files are deleted as expected.\r\n\r\n**Detail**\r\nUpon investigating the code, I suspect the filePath used is invalid.\r\n\r\n```\r\n private removeFile(entry: Entry): Promise\u003cany\u003e {\r\n this.debug_metaLog('Removing file: ' + entry.fullPath);\r\n const fullPath = entry.fullPath;\r\n const path = fullPath.replace(entry.name, ''); // THIS IS THE PROBLEM\r\n return this.file.removeFile(this.config.baseDir + path, entry.name);\r\n }\r\n```\r\n\r\nI believe the fix should be to use the log directory\r\n```\r\n const path = this.config.logDir;\r\n```\r\n","author":{"url":"https://github.com/ebhsgit","@type":"Person","name":"ebhsgit"},"datePublished":"2019-12-27T11:37:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/11/ionicLogFileAppender/issues/11"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39577f06-5521-5aaa-8c8d-47f68c15dcf6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E528:169A9B:8914D9:BC500C:69773950 |
| html-safe-nonce | 53bad0f3936952db5baafe9e392a572b3c7c5f15313c9d0b2b7adb3b76963d87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTI4OjE2OUE5Qjo4OTE0RDk6QkM1MDBDOjY5NzczOTUwIiwidmlzaXRvcl9pZCI6IjQ4NDM3Nzk5ODgzNzg4MjcwODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d4d86b5dd8293b92480a27e4923e9238727b4b8cde22789b13c4393c0a8f5f20 |
| hovercard-subject-tag | issue:542846588 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SmartMoveSystems/ionicLogFileAppender/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd666d791088e69cb0b2a0a9a615fd4ab10da1af53612ef92fafda5aa7e360a1/SmartMoveSystems/ionicLogFileAppender/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd666d791088e69cb0b2a0a9a615fd4ab10da1af53612ef92fafda5aa7e360a1/SmartMoveSystems/ionicLogFileAppender/issues/11 |
| og:image:alt | 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 fil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ebhsgit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/SmartMoveSystems/ionicLogFileAppender git https://github.com/SmartMoveSystems/ionicLogFileAppender.git |
| octolytics-dimension-user_id | 41357809 |
| octolytics-dimension-user_login | SmartMoveSystems |
| octolytics-dimension-repository_id | 141388808 |
| octolytics-dimension-repository_nwo | SmartMoveSystems/ionicLogFileAppender |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 141388808 |
| octolytics-dimension-repository_network_root_nwo | SmartMoveSystems/ionicLogFileAppender |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width