Revision 10ff638f src/gr/grnet/pithos/web/client/Helpers.java

b/src/gr/grnet/pithos/web/client/Helpers.java
87 87

  
88 88
                final String body = response.getText();
89 89
                if(body != null && body.trim().length() > 0) {
90
                    final String s = body.trim().substring(0, 120);
91
                    Pithos.LOG(body, body.length() <= 120 ? "" : " ...");
90
                    if(Pithos.IsFullResponseBodyLOGEnabled) {
91
                        Pithos.LOG(body);
92
                    }
93
                    else {
94
                        final int LEN = 120;
95
                        Pithos.LOG(body.trim().substring(0, LEN), body.length() <= LEN ? "" : " ...");
96
                    }
92 97
                }
93 98

  
94 99
                final Header[] headers = response.getHeaders();

Also available in: Unified diff