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.

Option to disable logging to console when syncing/updating data

See original GitHub issue

Hey 👋

opts.syncForm() logs the updates to the console every time the form data has changed. When this is used in content scripts (as opposed to background/popup/options scripts) it (in my opinion) pollutes the console. I suggest add logging to the console as an “option” passed to the syncForm function as an optional argument like so:

// This is an optional argument
// Default value can be `true` as it currently is
const options = {
	logging: false;
};

opts.syncForm(form, options);

Cheers,

Mihir

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fregantecommented, Mar 21, 2019

Ah yeah because _applyToForm is a static method. You can changed it to be a regular method and change its calls from OptionsSync._applyToForm to this._applyToForm

Also

- _log(method, list = []) {
+ _log(method, ...args) {

And

- this._log("info", ["Current options:", options]);
+ this._log('info', 'Current options:', options);
0reactions
plibither8commented, Apr 25, 2019

Thanks! Please publish to npm too ☺️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage who can sync browser settings - Google Support
Use your Admin console to turn Chrome sync on or off. Users who have sync turned on can synchronize their bookmarks, history, browser...
Read more >
Enable Data Access audit logs - Google Cloud
To access audit log configuration options in the Google Cloud console, follow these steps: From the Google Cloud console, select IAM & Admin...
Read more >
Syncing Xbox game saves to the cloud error messages
You have two options: Select Sync last saved data to stop the other console's upload and instead sync the data on the console...
Read more >
Console log formatting - .NET - Microsoft Learn
Learn how to use available console log formatting, or implement custom log formatting for your .NET applications.
Read more >
16.1.6.4 Binary Logging Options and Variables
The default location for binary log files is the data directory. ... If you want to disable binary logging for a server start...
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