Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Add more granular Kelp app names (closes #488)
Browse files Browse the repository at this point in the history
PR #517
  • Loading branch information
debnil authored Oct 6, 2020
1 parent ab638a0 commit 1d69ab8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions cmd/server_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,15 @@ func init() {
HTTP: http.DefaultClient,
}
if !*options.noHeaders {
apiTestNet.AppName = "kelp-ui"
if *options.noElectron {
apiTestNet.AppName = "kelp--gui-desktop--admin-browser"
apiPubNet.AppName = "kelp--gui-desktop--admin-browser"
} else {
apiTestNet.AppName = "kelp--gui-desktop--admin-electron"
apiPubNet.AppName = "kelp--gui-desktop--admin-electron"
}

apiTestNet.AppVersion = version
apiPubNet.AppName = "kelp-ui"
apiPubNet.AppVersion = version

p := prefs.Make(prefsFilename)
Expand Down
4 changes: 2 additions & 2 deletions cmd/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ func runTradeCmd(options inputs) {
HTTP: http.DefaultClient,
}
if !*options.noHeaders {
client.AppName = "kelp"
client.AppName = "kelp--cli--bot"
if *options.ui {
client.AppName = "kelp-ui"
client.AppName = "kelp--gui-desktop--bot"
}
client.AppVersion = version

Expand Down

0 comments on commit 1d69ab8

Please sign in to comment.