Skip to content

Commit b1003c3

Browse files
qavidbaywet
authored andcommitted
Log message of GraphServiceException only once gh-480
1 parent 0823f18 commit b1003c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import com.microsoft.graph.httpcore.middlewareoption.RedirectOptions;
2929
import com.microsoft.graph.httpcore.middlewareoption.RetryOptions;
3030
import com.microsoft.graph.logger.ILogger;
31-
import com.microsoft.graph.logger.LoggerLevel;
3231
import com.microsoft.graph.options.HeaderOption;
3332
import com.microsoft.graph.serializer.ISerializer;
3433

@@ -489,8 +488,7 @@ private <Result, Body, DeserializeType> Result processResponse(final Response re
489488
}
490489
}
491490
} catch (final GraphServiceException ex) {
492-
final boolean shouldLogVerbosely = logger.getLoggingLevel() == LoggerLevel.DEBUG;
493-
logger.logError("Graph service exception " + ex.getMessage(shouldLogVerbosely), ex);
491+
logger.logError("Graph service exception", ex);
494492
throw ex;
495493
} catch (final Exception ex) {
496494
final ClientException clientException = new ClientException("Error during http request",

0 commit comments

Comments
 (0)