Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
a8d3e3f3
Commit
a8d3e3f3
authored
Jul 04, 2019
by
Ivar Derksen
Committed by
Sietse Ringers
Oct 08, 2019
Browse files
Record session's ServerName in logs
parent
452a11ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaclient/logs.go
View file @
a8d3e3f3
...
...
@@ -27,6 +27,7 @@ type LogEntry struct {
IssueCommitment
*
irma
.
IssueCommitmentMessage
`json:",omitempty"`
// All session types
ServerName
irma
.
TranslatedString
`json:",omitempty"`
Version
*
irma
.
ProtocolVersion
`json:",omitempty"`
Disclosure
*
irma
.
Disclosure
`json:",omitempty"`
Request
json
.
RawMessage
`json:",omitempty"`
// Message that started the session
...
...
@@ -123,10 +124,11 @@ func (entry *LogEntry) GetSignedMessage() (abs *irma.SignedMessage, err error) {
func
(
session
*
session
)
createLogEntry
(
response
interface
{})
(
*
LogEntry
,
error
)
{
entry
:=
&
LogEntry
{
Type
:
session
.
Action
,
Time
:
irma
.
Timestamp
(
time
.
Now
()),
Version
:
session
.
Version
,
request
:
session
.
request
,
Type
:
session
.
Action
,
Time
:
irma
.
Timestamp
(
time
.
Now
()),
ServerName
:
session
.
ServerName
,
Version
:
session
.
Version
,
request
:
session
.
request
,
}
if
err
:=
entry
.
setSessionRequest
();
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment