Skip to content

Commit 72316dc

Browse files
committed
pr comment
1 parent c6139d6 commit 72316dc

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* handler (defaults to {@code Level.INFO}).
7171
* <p> This configuration also sets the "base severity level".
7272
* Logs with the same severity with the base could be more efficiently sent to Stackdriver.
73-
* The base severity defaults to the level of of handler or {@code Level.FINEST}
73+
* The base severity defaults to the level of the handler or {@code Level.FINEST}
7474
* if the handler is set to {@code Level.ALL}.
7575
* There is currently no way to modify the base level, see
7676
* <a href="https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1740">tracking issue</a>.

google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingHandlerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ public class LoggingHandlerTest {
147147
.put("resourceType", "testResourceType")
148148
.put("synchronicity", "SYNC")
149149
.build();
150-
private static final ImmutableMap<String, String> NATIVE_SEVERITY_MAP =
150+
private static final ImmutableMap<String, String> BASE_SEVERITY_MAP =
151151
ImmutableMap.of(
152152
"levelName", Level.INFO.getName(), "levelValue", String.valueOf(Level.INFO.intValue()));
153153
private static final WriteOption[] DEFAULT_OPTIONS =
154154
new WriteOption[] {
155155
WriteOption.logName(LOG_NAME),
156156
WriteOption.resource(DEFAULT_RESOURCE),
157-
WriteOption.labels(NATIVE_SEVERITY_MAP)
157+
WriteOption.labels(BASE_SEVERITY_MAP)
158158
};
159159

160160
private static byte[] renderConfig(Map<String, String> config) {
@@ -277,7 +277,7 @@ public void testPublishCustomResource() {
277277
ImmutableList.of(FINEST_ENTRY),
278278
WriteOption.logName(LOG_NAME),
279279
WriteOption.resource(resource),
280-
WriteOption.labels(NATIVE_SEVERITY_MAP));
280+
WriteOption.labels(BASE_SEVERITY_MAP));
281281
EasyMock.expectLastCall().andReturn(ApiFutures.immediateFuture(null));
282282
EasyMock.replay(options, logging);
283283
Handler handler = new LoggingHandler(LOG_NAME, options, resource);
@@ -295,7 +295,7 @@ public void testEnhancedLogEntry() {
295295
ImmutableList.of(FINEST_ENHANCED_ENTRY),
296296
WriteOption.logName(LOG_NAME),
297297
WriteOption.resource(resource),
298-
WriteOption.labels(NATIVE_SEVERITY_MAP));
298+
WriteOption.labels(BASE_SEVERITY_MAP));
299299
EasyMock.expectLastCall().andReturn(ApiFutures.immediateFuture(null));
300300
EasyMock.replay(options, logging);
301301
LoggingHandler.Enhancer enhancer = new LoggingHandler.Enhancer() {

0 commit comments

Comments
 (0)