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

Fix issue with sync menu and excessive logging #1595

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Fix issue with sync menu and excessive logging #1595

merged 1 commit into from
Jul 23, 2020

Conversation

dkanada
Copy link
Member

@dkanada dkanada commented Jul 19, 2020

I'd like to get this in 10.6.0 so if someone sees this feel free to review. My chat may or may not be totally broken right now so I'll be gone from Matrix until Tuesday or Wednesday.

@sonarcloud
Copy link

sonarcloud bot commented Jul 19, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -72,7 +72,6 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
const now = (new Date).getTime();

if (method !== reportPlaybackLastMethod || now - (reportPlaybackLastTime || 0) >= reportPlaybackLogDelay) {
console.debug(method + '-' + JSON.stringify(info));
Copy link
Contributor

Choose a reason for hiding this comment

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

This block is for logging. It was more verbose :p
bffafa6

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, well I still think it's way too verbose for the debug logs 😅 might just want to remove it.

@dkanada dkanada added the stable backport Backport into the next stable release label Jul 23, 2020
@dkanada dkanada merged commit 7c24727 into master Jul 23, 2020
@dkanada dkanada deleted the error branch July 23, 2020 05:16
@dmitrylyzo
Copy link
Contributor

These also had to be removed:

/** Last invoked method */
let reportPlaybackLastMethod;
/** Last invoke time of method */
let reportPlaybackLastTime;

const now = (new Date).getTime();
if (method !== reportPlaybackLastMethod || now - (reportPlaybackLastTime || 0) >= reportPlaybackLogDelay) {
reportPlaybackLastMethod = method;
reportPlaybackLastTime = now;
}

joshuaboniface pushed a commit that referenced this pull request Jul 27, 2020
Fix issue with sync menu and excessive logging

(cherry picked from commit 7c24727)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
@joshuaboniface joshuaboniface removed the stable backport Backport into the next stable release label Jul 27, 2020
@joshuaboniface joshuaboniface added this to In progress in Release 10.6 Maintenance via automation Jul 27, 2020
@joshuaboniface joshuaboniface moved this from In progress to Done in Release 10.6 Maintenance Jul 27, 2020
@joshuaboniface joshuaboniface moved this from Done to Backported in Release 10.6 Maintenance Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants