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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
0794656f
Commit
0794656f
authored
Sep 23, 2021
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add flag for verboseRoundTracking
parent
904f1a31
No related branches found
No related tags found
2 merge requests
!53
Release
,
!27
Update deps
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+4
-1
4 additions, 1 deletion
README.md
cmd/root.go
+7
-2
7 additions, 2 deletions
cmd/root.go
with
11 additions
and
3 deletions
README.md
+
4
−
1
View file @
0794656f
...
...
@@ -179,7 +179,7 @@ Flags:
(default 1)
--sendDelay uint The delay between sending the messages in ms
(default 500)
--sendid uint Use precanned user id (must be between 1 and
--sendid ui
verboseRoundTracking
nt Use precanned user id (must be between 1 and
40, inclusive)
--slowPolling bool Enables polling for all network updates and RSA signed rounds.
Defaults to true (filtered updates with ECC signed rounds) if not set
...
...
@@ -190,6 +190,9 @@ Flags:
--unsafe-channel-creation Turns off the user identity authenticated
channel check, automatically approving
authenticated channels
--verboseRoundTracking Verbose round tracking, keeps track and prints
all rounds the client was aware of while running.
Defaults to false if not set.
-v, --logLevel uint Level of debugging to print (0 = info,
1 = debug, >1 = trace). (Default info)
--waitTimeout uint The number of seconds to wait for messages to
...
...
This diff is collapsed.
Click to expand it.
cmd/root.go
+
7
−
2
View file @
0794656f
...
...
@@ -387,7 +387,7 @@ func createClient() *api.Client {
netParams
.
ForceHistoricalRounds
=
viper
.
GetBool
(
"forceHistoricalRounds"
)
netParams
.
FastPolling
=
!
viper
.
GetBool
(
"slowPolling"
)
netParams
.
ForceMessagePickupRetry
=
viper
.
GetBool
(
"forceMessagePickupRetry"
)
netParams
.
VerboseRoundTracking
=
logLevel
>
0
netParams
.
VerboseRoundTracking
=
viper
.
GetBool
(
"verboseRoundTracking"
)
client
,
err
:=
api
.
OpenClient
(
storeDir
,
[]
byte
(
pass
),
netParams
)
if
err
!=
nil
{
...
...
@@ -415,7 +415,7 @@ func initClient() *api.Client {
jww
.
INFO
.
Printf
(
"Setting Uncheck Round Period to %v"
,
period
)
netParams
.
UncheckRoundPeriod
=
period
}
netParams
.
VerboseRoundTracking
=
viper
.
Get
Uint
(
"logLevel"
)
>
0
netParams
.
VerboseRoundTracking
=
viper
.
Get
Bool
(
"verboseRoundTracking"
)
//load the client
client
,
err
:=
api
.
Login
(
storeDir
,
[]
byte
(
pass
),
netParams
)
...
...
@@ -731,6 +731,11 @@ func init() {
"Verbose mode for debugging"
)
viper
.
BindPFlag
(
"logLevel"
,
rootCmd
.
PersistentFlags
()
.
Lookup
(
"logLevel"
))
rootCmd
.
PersistentFlags
()
.
Bool
(
"verboseRoundTracking"
,
false
,
"Verbose round tracking, keeps track and prints all rounds the "
+
"client was aware of while running. Defaults to false if not set."
)
viper
.
BindPFlag
(
"verboseRoundTracking"
,
rootCmd
.
PersistentFlags
()
.
Lookup
(
"verboseRoundTracking"
))
rootCmd
.
PersistentFlags
()
.
StringP
(
"session"
,
"s"
,
""
,
"Sets the initial storage directory for "
+
"client session data"
)
...
...
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