From ddb410fea0126c8386e9be9790a7bbe77dfe8ab8 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Sat, 25 Jan 2014 21:34:26 +0100 Subject: [PATCH] rename DBG -> dbg, looks nicer imo --- vtm/src/org/oscim/tiling/source/common/LwHttp.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vtm/src/org/oscim/tiling/source/common/LwHttp.java b/vtm/src/org/oscim/tiling/source/common/LwHttp.java index 1471261c..5b6e6bff 100644 --- a/vtm/src/org/oscim/tiling/source/common/LwHttp.java +++ b/vtm/src/org/oscim/tiling/source/common/LwHttp.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; */ public class LwHttp { static final Logger log = LoggerFactory.getLogger(LwHttp.class); - static final boolean DBG = false; + static final boolean dbg = false; private final static byte[] HEADER_HTTP_OK = "200 OK".getBytes(); private final static byte[] HEADER_CONTENT_TYPE = "Content-Type".getBytes(); @@ -160,7 +160,7 @@ public class LwHttp { sumRead += 1; - if (DBG) + if (dbg) log.debug("read {} {}", sumRead, mContentLength); if (mCache != null) @@ -178,7 +178,7 @@ public class LwHttp { int len = super.read(buffer, offset, byteCount); - if (DBG) + if (dbg) log.debug("read {} {} {}", len, sumRead, mContentLength); if (len <= 0) @@ -265,7 +265,7 @@ public class LwHttp { HEADER_CONTENT_LENGTH.length + 2, end - 1); } - if (!ok || DBG) { + if (!ok || dbg) { String line = new String(buf, pos, end - pos - 1); log.debug("> {} <", line); } @@ -296,7 +296,7 @@ public class LwHttp { close(); - if (DBG) + if (dbg) log.debug("not alive - recreate connection " + mMaxReq); } @@ -326,7 +326,7 @@ public class LwHttp { System.arraycopy(REQUEST_GET_END, 0, request, pos, len); len += pos; - if (DBG) + if (dbg) log.debug("request: {}", new String(request, 0, len)); try {