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

I set debuglevel to 0 and I still get output in the console? #29

Closed
lfmunoz4 opened this issue Jun 26, 2013 · 12 comments
Closed

I set debuglevel to 0 and I still get output in the console? #29

lfmunoz4 opened this issue Jun 26, 2013 · 12 comments
Assignees
Milestone

Comments

@lfmunoz4
Copy link

How do make fancyTree not display anything in the console?

@ghost ghost assigned mar10 Jun 27, 2013
@mar10
Copy link
Owner

mar10 commented Jun 27, 2013

try

$.ui.fancytree.debugLevel = 1; // 0:quiet, 1:info, 2:debug

@mar10 mar10 closed this as completed Jun 27, 2013
@pebezo
Copy link

pebezo commented Jul 29, 2013

Will "debugLevel: 0;" be supported as an init option? (right now it doesn't seem to do anything...)

@mar10
Copy link
Owner

mar10 commented Jul 29, 2013

yes, this would be a good thing

@mar10 mar10 reopened this Jul 29, 2013
@mar10 mar10 closed this as completed in 07a488c Jul 30, 2013
@pnacelli
Copy link

pnacelli commented Aug 2, 2013

Just pulled latest today and "debugLevel: 0" on init option is still outputting, please advise.

Note: seems that it's coming from this: jquery.fancytree.js: line 66

@mar10
Copy link
Owner

mar10 commented Aug 3, 2013

what output do you see? And when (on start up)? Did you clear the browser cache?

@pnacelli
Copy link

pnacelli commented Aug 3, 2013

Hi Martin,

Seeing the output on page load, even after clearing the browser cache, here's a screenshot of the console.
image

Let me know if you need more info.

@mar10
Copy link
Owner

mar10 commented Aug 4, 2013

Ok, this is from a global debug call ($.ui.fancytree.debug(...)), I will removed this line later.

In general, those global calls cannot be controlled using a tree option. You have to use

$.ui.fancytree.debugLevel = 1; // 0:quiet, 1:info, 2:debug

instead.

@pnacelli
Copy link

pnacelli commented Aug 5, 2013

That worked. Thanks Martin.

@mafar
Copy link

mafar commented Apr 21, 2016

@mar10
I have tried

$.ui.fancytree.debugLevel = 1; //
$.ui.fancytree.debugLevel = 0;

and tree option debugLevel: 0 and debugLevel: 1
But i still get ,
<FancytreeNode(#6, 'NAME')> scrollIntoView(): node is invisible.
My tree is hidden in beginning in dropdown

@mar10
Copy link
Owner

mar10 commented Apr 22, 2016

@djangosdk This is a warning and cannot be silenced.
If you feel that there are valid scenarios causing it, please open a seperate issue.

@TimNZ
Copy link

TimNZ commented Aug 20, 2017

@mar10

I added a check in consoleApply() to not output anything if $.ui.fancytree.debugLevel == 0, the warnings were polluting my debug output from my drag* event handlers.

It's not the warnings are invalid, it's being able to control their output when necessary.

@mar10
Copy link
Owner

mar10 commented Aug 21, 2017

@TimNZ This is probably not compatible with the debugLevel property of distinct fancytree instances? (We can discuss this, but please make sure not to mix such modifications with unrelated PRs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants