File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed
examples/src/main/resources
sdk-core/src/main/java/dev/restate/sdk/core Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -346,9 +346,17 @@ appender.console.name = consoleLogger
346
346
appender.console.layout.type = PatternLayout
347
347
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %notEmpty{[%X{restateServiceMethod}]}%notEmpty{[%X{restateInvocationId}]} %c - %m%n
348
348
349
+ # Filter out logging during replay
350
+ appender.console.filter.replay.type = ContextMapFilter
351
+ appender.console.filter.replay.onMatch = DENY
352
+ appender.console.filter.replay.onMismatch = NEUTRAL
353
+ appender.console.filter.replay.0.type = KeyValuePair
354
+ appender.console.filter.replay.0.key = restateInvocationStatus
355
+ appender.console.filter.replay.0.value = REPLAYING
356
+
349
357
# Restate logs to debug level
350
358
logger.app.name = dev.restate
351
- logger.app.level = debug
359
+ logger.app.level = info
352
360
logger.app.additivity = false
353
361
logger.app.appenderRef.console.ref = consoleLogger
354
362
Original file line number Diff line number Diff line change @@ -5,11 +5,19 @@ status = warn
5
5
appender.console.type = Console
6
6
appender.console.name = consoleLogger
7
7
appender.console.layout.type = PatternLayout
8
- appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %notEmpty{[%X{restateServiceMethod}]}%notEmpty{[%X{restateInvocationId}]}%notEmpty{[%X{restateInvocationStatus}]} %c - %m%n
8
+ appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %notEmpty{[%X{restateServiceMethod}]}%notEmpty{[%X{restateInvocationId}]} %c - %m%n
9
+
10
+ # Filter out logging during replay
11
+ appender.console.filter.replay.type = ContextMapFilter
12
+ appender.console.filter.replay.onMatch = DENY
13
+ appender.console.filter.replay.onMismatch = NEUTRAL
14
+ appender.console.filter.replay.0.type = KeyValuePair
15
+ appender.console.filter.replay.0.key = restateInvocationStatus
16
+ appender.console.filter.replay.0.value = REPLAYING
9
17
10
18
# Restate logs to debug level
11
19
logger.app.name = dev.restate
12
- logger.app.level = debug
20
+ logger.app.level = info
13
21
logger.app.additivity = false
14
22
logger.app.appenderRef.console.ref = consoleLogger
15
23
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ void onStart(MessageLite msg) {
205
205
void close () {
206
206
if (this .invocationState != InvocationState .CLOSED ) {
207
207
this .transitionState (InvocationState .CLOSED );
208
- LOG .debug ( "Closing state machine " );
208
+ LOG .info ( "Stopped processing invocation " );
209
209
210
210
// Cancel inputSubscription and complete outputSubscriber
211
211
if (inputSubscription != null ) {
@@ -227,7 +227,7 @@ void close() {
227
227
void fail (Throwable cause ) {
228
228
if (this .invocationState != InvocationState .CLOSED ) {
229
229
this .transitionState (InvocationState .CLOSED );
230
- LOG .debug ( "Closing state machine with failure" , cause );
230
+ LOG .warn ( "Stopped processing invocation with failure" , cause );
231
231
232
232
// Cancel inputSubscription and complete outputSubscriber
233
233
if (inputSubscription != null ) {
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public InvocationFlow.InvocationOutputPublisher output() {
111
111
112
112
@ Override
113
113
public void start () {
114
- LOG .debug ("Start processing call to {}/{}" , serviceName , methodName );
114
+ LOG .info ("Start processing invocation" );
115
115
stateMachine .start (
116
116
invocationId -> {
117
117
// Set invocation id in logging context
You can’t perform that action at this time.
0 commit comments