Revision 64800147 src/gr/grnet/pithos/web/client/Pithos.java

b/src/gr/grnet/pithos/web/client/Pithos.java
78 78
 * Entry point classes define <code>onModuleLoad()</code>.
79 79
 */
80 80
public class Pithos implements EntryPoint, ResizeHandler {
81
    private static final boolean IsLOGEnabled = true;
81
    private static final boolean IsLOGEnabled = false;
82 82
    public static final boolean IsDetailedHTTPLOGEnabled = true;
83 83
    public static final boolean IsFullResponseBodyLOGEnabled = true;
84 84

  
......
343 343
    }
344 344

  
345 345
    static native void __ConsoleLog(String message) /*-{
346
      try {
347
        console.log(message);
348
      } catch (e) {
349
      }
346
      try { console.log(message); } catch (e) {}
350 347
    }-*/;
351 348

  
352 349
    public static void LOGError(Throwable error, StringBuilder sb) {
353
        if(!IsLOGEnabled) { return; }
350
        if(!isLOGEnabled()) { return; }
354 351

  
355 352
        sb.append("\nException: [" + error.toString().replace("\n", "\n  ") + "]");
356 353
        Throwable cause = error.getCause();
......
378 375
    }
379 376

  
380 377
    public static void LOGError(Throwable error) {
381
        if(!IsLOGEnabled) { return; }
378
        if(!isLOGEnabled()) { return; }
382 379

  
383 380
        final StringBuilder sb = new StringBuilder();
384 381
        LOGError(error, sb);
......
387 384
        }
388 385
    }
389 386

  
390
    public static boolean isLogEnabled() {
387
    public static boolean isLOGEnabled() {
391 388
        return IsLOGEnabled;
392 389
    }
393 390

  
394 391
    public static void LOG(Object ...args) {
395
        if(!IsLOGEnabled) { return; }
392
        if(!isLOGEnabled()) { return; }
396 393

  
397 394
        final StringBuilder sb = new StringBuilder();
398 395
        for(Object arg : args) {

Also available in: Unified diff