Only produce the RPC log when the logLevel is DEBUG, to improve force cachability.
Review by: cromwellian@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10833 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java b/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java
index 8b037da..4f924c8 100644
--- a/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java
+++ b/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java
@@ -1,12 +1,12 @@
/*
* Copyright 2008 Google Inc.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -250,7 +250,7 @@
/**
* Creates the client-side proxy class.
- *
+ *
* @throws UnableToCompleteException
*/
public RebindResult create(TreeLogger logger, GeneratorContext context)
@@ -370,7 +370,7 @@
srcWriter.commit(logger);
- if (context.isProdMode() || logger.isLoggable(TreeLogger.DEBUG)) {
+ if (logger.isLoggable(TreeLogger.DEBUG)) {
// Create an artifact explaining STOB's decisions. It will be emitted by
// RpcLogLinker
context.commitArtifact(logger, new RpcLogArtifact(serviceIntf.getQualifiedSourceName(),
@@ -479,7 +479,7 @@
/**
* Generate any fields required by the proxy.
- *
+ *
* @param serializableTypeOracle the type oracle
*/
protected void generateProxyFields(SourceWriter srcWriter,
@@ -498,7 +498,7 @@
/**
* Generates the client's asynchronous proxy method.
- *
+ *
* @param serializableTypeOracle the type oracle
*/
protected void generateProxyMethod(SourceWriter w, SerializableTypeOracle serializableTypeOracle,