mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
@@ -46,7 +46,6 @@ func SanitizeExchangeConfigForLog(exchanges map[string]struct {
|
||||
AsterPrivateKey string `json:"aster_private_key"`
|
||||
LighterWalletAddr string `json:"lighter_wallet_addr"`
|
||||
LighterPrivateKey string `json:"lighter_private_key"`
|
||||
OKXPassphrase string `json:"okx_passphrase"`
|
||||
}) map[string]interface{} {
|
||||
safe := make(map[string]interface{})
|
||||
for exchangeID, cfg := range exchanges {
|
||||
@@ -68,9 +67,6 @@ func SanitizeExchangeConfigForLog(exchanges map[string]struct {
|
||||
if cfg.LighterPrivateKey != "" {
|
||||
safeExchange["lighter_private_key"] = MaskSensitiveString(cfg.LighterPrivateKey)
|
||||
}
|
||||
if cfg.OKXPassphrase != "" {
|
||||
safeExchange["okx_passphrase"] = MaskSensitiveString(cfg.OKXPassphrase)
|
||||
}
|
||||
|
||||
// 非敏感字段直接添加
|
||||
if cfg.HyperliquidWalletAddr != "" {
|
||||
|
||||
Reference in New Issue
Block a user