Akka Stream log operator documentation fix (#27654)
* Fix Akka Stream log operator documentation example * Keep Scala documentation example in sync
This commit is contained in:
parent
a32a89b656
commit
4576835cce
2 changed files with 5 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ import java.util.Arrays;
|
|||
|
||||
// #log
|
||||
import akka.stream.Attributes;
|
||||
import akka.stream.javadsl.Source;
|
||||
|
||||
// #log
|
||||
|
||||
import java.time.Duration;
|
||||
|
|
@ -52,8 +52,8 @@ class SourceOrFlow {
|
|||
.addAttributes(
|
||||
Attributes.createLogLevels(
|
||||
Attributes.logLevelOff(), // onElement
|
||||
Attributes.logLevelError(), // onFailure
|
||||
Attributes.logLevelInfo())) // onFinish
|
||||
Attributes.logLevelInfo(), // onFinish
|
||||
Attributes.logLevelError())) // onFailure
|
||||
// #log
|
||||
;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue