Skip to content

Commit dcec6e5

Browse files
committed
Log the loaded state and its source
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent fcd61a2 commit dcec6e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/satosa/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ def _load_state(self, context):
251251
state = State()
252252
finally:
253253
context.state = state
254+
msg_tmpl = 'Loaded state {state} from cookie {cookie}'
255+
msg = msg_tmpl.format(state=state, cookie=context.cookie)
256+
logger.info(msg)
254257

255258
def _save_state(self, resp, context):
256259
"""

0 commit comments

Comments
 (0)