Hi all,

Just hitting beta on our project and updating some of the config to
make sure we were turning off debugging for customers but still had
access to it if necessary.  Therefore, I'm trying to set the default
log_level of OFF, but still be able to turn on DEBUG level from the
URL.

   <inherits name="com.allen_sauer.gwt.log.gwt-log-OFF" />
   <extend-property name="log_level" values="DEBUG"/>

Everything seems to compile and test fine from Ant (both dev and prod
mode test runs).  However, when I run from Eclipse in dev mode (the
normal way we develop our app), it gets horked with the following
error:

10:22:40.832 [ERROR] [webui] Error while executing the JavaScript
provider for property 'log_level'

com.google.gwt.core.client.JavaScriptException: (TypeError): u[a] is
not a function
 fileName: http://localhost/WebUI/webui/webui.nocache.js
 lineNumber: 7
 stack: F(&quot;log_level&quot;)@http://localhost/WebUI/webui/
webui.nocache.js:7
(&quot;log_level&quot;)@http://localhost/WebUI/webui/webui.nocache.js:
2
connect(&quot;http://localhost/WebUI/WebUI.html?gwt.codesvr=localhost:
9997&quot;,&quot;%/vu&gt;=O,,Q:mQ!ky&quot;,&quot;localhost:
9997&quot;,&quot;webui&quot;,&quot;2.0&quot;)@:0
((void 0),&quot;webui&quot;,&quot;http://localhost/WebUI/webui/
&quot;)@http://localhost/WebUI/webui/hosted.html?webui:264
z()@http://localhost/WebUI/webui/webui.nocache.js:2
(1)@http://localhost/WebUI/webui/webui.nocache.js:9

    at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195)
    at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
    at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
    at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
    at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:
189)
    at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:
127)
    at
com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:
58)
    at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:49)
    at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:
38)
    at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:49)
    at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:36)
    at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:98)
    at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
    at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
    at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
119)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
531)
    at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
414)
    at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
    at com.google.gwt.core.client.GWT.create(GWT.java:98)
    at com.allen_sauer.gwt.log.client.Log.&lt;clinit&gt;(Log.java:70)
    at com.ca.skynet.webui.client.WebUI.debugVersions(WebUI.java:219)
    at com.ca.skynet.webui.client.WebUI.onModuleLoad(WebUI.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
    at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
    at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
    at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
    at java.lang.Thread.run(Thread.java:680)


If I remove the extend and only use OFF or DEBUG everything works
great, but just not with the multiple levels added.

I'm using GWT 2.0.3 and GWT Log 3.0.1.  Any ideas?

Thanks in advance,

kddubb

-- 
You received this message because you are subscribed to the Google Groups 
"gwt-log" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gwt-log?hl=en.

Reply via email to