File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
google-cloud-logging/src/main/java/com/google/cloud/logging Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ public void publish(LogRecord record) {
305
305
}
306
306
LogEntry logEntry ;
307
307
try {
308
- logEntry = logEntryFor (record );
308
+ logEntry = logEntryFor (record ). build () ;
309
309
} catch (Exception ex ) {
310
310
getErrorManager ().error (null , ex , ErrorManager .FORMAT_FAILURE );
311
311
return ;
@@ -343,7 +343,7 @@ private MonitoredResource getMonitoredResource() {
343
343
return null ;
344
344
}
345
345
346
- private LogEntry logEntryFor (LogRecord record ) throws Exception {
346
+ protected LogEntry . Builder logEntryFor (LogRecord record ) throws Exception {
347
347
String payload = getFormatter ().format (record );
348
348
Level level = record .getLevel ();
349
349
LogEntry .Builder builder =
@@ -360,7 +360,7 @@ private LogEntry logEntryFor(LogRecord record) throws Exception {
360
360
for (LoggingEnhancer enhancer : enhancers ) {
361
361
enhancer .enhanceLogEntry (builder );
362
362
}
363
- return builder . build () ;
363
+ return builder ;
364
364
}
365
365
366
366
@ Override
You can���t perform that action at this time.
0 commit comments