question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Cleanup log summary too large.

See original GitHub issue

Describe the bug

Not actually sure if it’s a bug, but it’s certainly something new in 3.5.1 and it seems very unnecessary.

The issue is that for every manual clean I get a massive list of all whitelisted domains/hosts, like this:

26/08/2020, 15:28:05 CEST - Some site data, including 0 Cookie(s), removed from: bbc.com, www.bbc.com, account.bbc.com, www.discogs.com, www.last.fm, web.archive.org ... [rest of 200 entries]

Is this expected behaviour, and if it is, is there a setting to just have it write what it removed?

To Reproduce

Steps to reproduce the behavior:

  1. Click on extension icon
  2. Click on Clean
  3. The huge list gets generated in the log

Expected behavior

I would expect it to only show the domains it clean, not the full whitelist.

Screenshots

n/a

Your System Info (please complete the following information):

  • Windows 10 Pro x64 build 2004
  • Browser Info: Vivaldi 3.3.2020.3 (Chrome/85.0.4183.80)
  • CookieAutoDelete Version: 3.5.1

Additional context

Might be a Vivaldi issue, I will check in older versions too.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethtran93commented, Aug 26, 2020

These other sites that are logged are white-listed, so why would it log anything at all? And even though “Keep Service Workers” is deselected for them, I strongly doubt they’ve managed to register a SW in the meantime after the last clean.

This is because we cannot enumerate any of those browsing data, so we blindly execute the clean function for those domains which was queried from the cookies/internal cookie.

This should only occur if there is an internal cookie that CAD created when you revisit that site. Reason being is that is how we clean browsing data items, otherwise there is no other way clean them by domain.

I understand this, but say for instance: I have 2 cookies from www.ecosia.org which is whitelisted, no SW or local storage - why does it then need to log this domain at all? There is nothing there to be cleaned.

See point above. From 3.5.1 I need to create an internal cookie (with subdomain if it has one) regardless if there’s existing cookies from that site as some sites only set the main/root domain and not the subdomain itself. (Only applies if at least one of the browsing data needs to be cleaned). Cookies are the only item we can enumerate for domain checking. The other alternative is to completely clean all the individual browsing types which would wipe it all away, regardless of domain. This is already being accomplished when you enable the browsing data cleanup option in CAD Settings.

Sure this would work, but I still believe this is something new to this version which does not behave like it used to in the older versions. I could try to do the same in an older version and see what results I get.

This is because prior to 3.5.0 there was no way of knowing if browsing data got cleaned properly or was executed to be cleaned by CAD or something else.

By the way, I really appreciate your work and this extension is great, I just think this seems more like a bug than a missing feature.

And thus why I left it as bug again with the intent to limit the summary lines.

0reactions
Pathduckcommented, Aug 26, 2020

This is because we cannot enumerate any of those browsing data, so we blindly execute the clean function for those domains which was queried from the cookies/internal cookie.

OK I think I understand it now, and I’m sure there are good technical reasons for why it has to work this way. My issue was that this was very different for how 3.4.0 logged its cleaning. Even with Local Storage cleaning on.

Since I was already in the process of replying anyway, here’s another screen recording, of how it worked in 3.4.0. Opened a bunch of tabs, closed them again, and triggered a clean: https://imgur.com/Uyq5lRj

Notice there are 31 deleted cookies from various domains, and subsequent triggers of Clean do not log anything else. There is also no log entry from github.com, even though it’s set to not keep Local Storage - because there is no Local Storage so why would it log.

But now that I’ve read your reply I think I understand it. To be honest, like I said above I usually rely on the auto-clean, and rarely look at the log (I’ve even disabled clean notifications). I use the manual clean to test if CAD still works as expected, especially after an update with new features, hence this issue 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 7 log file compression bug can fill up your hard drive
log reaches a size of 2 GB before that cleanup process compresses it, the file is too large to be handled by the...
Read more >
SFDX creates enormous log files on my boot drive · Issue #1408
Summary SFDX creates many gigabytes of logfiles on my primary boot drive, causing the drive to run out of space Steps To Reproduce:...
Read more >
How to Write A Good Bug Report? Tips and Tricks
Try to summarize the problem in minimum words yet in an effective way. Do not combine multiple problems even if they seem to...
Read more >
Windows scaling issues for high-DPI devices - Microsoft Support
Summary · Elements such as applications, the taskbar, icons, toolbars, text, and dialog boxes appear to be fuzzy. · Elements are too large...
Read more >
[2.0.x] IDE: delete images on save: orphan string delimiter ...
Bug Description ; summary: - IDE: delete images on save: orphan string delimiter message line number - too large + [2.0.x] IDE: delete...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found