Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
74f51226
Commit
74f51226
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add more debugs
parent
e050c891
No related branches found
No related tags found
2 merge requests
!510
Release
,
!396
Remove restoring backed up facts from bindings NewUdManagerFromBackup call
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
backup/backupRestore.go
+7
-0
7 additions, 0 deletions
backup/backupRestore.go
ud/store/facts.go
+2
-0
2 additions, 0 deletions
ud/store/facts.go
with
9 additions
and
0 deletions
backup/backupRestore.go
+
7
−
0
View file @
74f51226
...
@@ -81,6 +81,8 @@ func NewCmixFromBackup(ndfJSON, storageDir, backupPassphrase string,
...
@@ -81,6 +81,8 @@ func NewCmixFromBackup(ndfJSON, storageDir, backupPassphrase string,
}
}
udInfo
:=
backUp
.
UserDiscoveryRegistration
udInfo
:=
backUp
.
UserDiscoveryRegistration
jww
.
INFO
.
Printf
(
"USERNAME BACKUP DEBUG (NewCmixFromBackup): fact list %+v"
,
udInfo
)
var
username
,
email
,
phone
fact
.
Fact
var
username
,
email
,
phone
fact
.
Fact
for
_
,
f
:=
range
udInfo
.
FactList
{
for
_
,
f
:=
range
udInfo
.
FactList
{
switch
f
.
T
{
switch
f
.
T
{
...
@@ -92,6 +94,11 @@ func NewCmixFromBackup(ndfJSON, storageDir, backupPassphrase string,
...
@@ -92,6 +94,11 @@ func NewCmixFromBackup(ndfJSON, storageDir, backupPassphrase string,
phone
=
f
phone
=
f
}
}
}
}
jww
.
INFO
.
Printf
(
"USERNAME BACKUP DEBUG (NewCmixFromBackup) facts found:"
+
"
\n
username: %v"
+
"
\n
email %v"
+
"
\n
phone %+v"
,
username
,
email
,
phone
)
err
=
ud
.
InitStoreFromBackup
(
storageSess
.
GetKV
(),
username
,
email
,
phone
)
err
=
ud
.
InitStoreFromBackup
(
storageSess
.
GetKV
(),
username
,
email
,
phone
)
return
backUp
.
Contacts
.
Identities
,
backUp
.
JSONParams
,
err
return
backUp
.
Contacts
.
Identities
,
backUp
.
JSONParams
,
err
}
}
This diff is collapsed.
Click to expand it.
ud/store/facts.go
+
2
−
0
View file @
74f51226
...
@@ -178,6 +178,8 @@ func (s *Store) BackUpMissingFacts(username, email, phone fact.Fact) error {
...
@@ -178,6 +178,8 @@ func (s *Store) BackUpMissingFacts(username, email, phone fact.Fact) error {
return
s
.
saveConfirmedFacts
()
return
s
.
saveConfirmedFacts
()
}
}
jww
.
INFO
.
Printf
(
"USERNAME BACKUP DEBUG (BackUpMissingFacts): fact map after %+v"
,
s
.
confirmedFacts
)
return
nil
return
nil
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment