Skip to content

Commit 355822f

Browse files
authored
Merge pull request #514 from qavid/bugfix/gh-480
Log message of GraphServiceException only once
2 parents 0823f18 + cc485f4 commit 355822f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
- Fixed an issue where the error message would be logged twice. #514
15+
1416
## [2.0.12] - 2022-04-22
1517

1618
### Added

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)