Skip to content

Commit 461068e

Browse files
author
Caitlin Bales
committed
Only show truncated message if verbose logging is turned off
1 parent b9d03f7 commit 461068e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/microsoft/graph/http/GraphServiceException.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ public String getMessage(final boolean verbose) {
201201
sb.append("[Warning: Unable to parse error message body]").append(NEW_LINE);
202202
}
203203
} else {
204-
sb.append(TRUNCATION_MARKER).append(NEW_LINE).append(NEW_LINE);
205-
sb.append("[Some information was truncated for brevity, enable debug logging for more details]");
204+
if (!verbose) {
205+
sb.append(TRUNCATION_MARKER).append(NEW_LINE).append(NEW_LINE);
206+
sb.append("[Some information was truncated for brevity, enable debug logging for more details]");
207+
}
206208
}
207209
return sb.toString();
208210
}

0 commit comments

Comments
 (0)