remove sensitive data from debug output
This commit is contained in:
parent
b429076cad
commit
f91c480ad8
|
@ -11,8 +11,7 @@
|
|||
[status-im.navigation.handlers :as nav]))
|
||||
|
||||
(defn account-recovered [result]
|
||||
(let [_ (log/debug result)
|
||||
data (json->clj result)
|
||||
(let [data (json->clj result)
|
||||
public-key (:pubkey data)
|
||||
address (:address data)
|
||||
{:keys [public private]} (protocol/new-keypair!)
|
||||
|
|
|
@ -89,7 +89,6 @@
|
|||
(map :name))
|
||||
command' (->> (prepare-command current-public-key chat-id clock-value request content)
|
||||
(cu/check-author-direction db chat-id))]
|
||||
(log/debug "Handler data: " request handler-data params)
|
||||
(dispatch [:update-message-overhead! chat-id network-status])
|
||||
(dispatch [:set-chat-ui-props {:sending-in-progress? false}])
|
||||
(dispatch [::send-command! add-to-chat-id (assoc params :command command') hidden-params])
|
||||
|
@ -328,7 +327,6 @@
|
|||
current-account-id accounts]
|
||||
:contacts/keys [contacts] :as db}
|
||||
[_ {:keys [chat-id command]}]]
|
||||
(log/debug "sending command: " command)
|
||||
(if (get-in contacts [chat-id :dapp?])
|
||||
(when-let [text-message (get-in command [:content :handler-data :text-message])]
|
||||
(handle-message-from-bot {:message text-message
|
||||
|
|
|
@ -122,7 +122,7 @@
|
|||
|
||||
(defn complete-transactions
|
||||
[hashes password callback]
|
||||
(log/debug :complete-transactions (boolean status) hashes password)
|
||||
(log/debug :complete-transactions (boolean status) hashes)
|
||||
(when status
|
||||
(call-module #(.completeTransactions status (cljs->json hashes) password callback))))
|
||||
|
||||
|
@ -142,7 +142,8 @@
|
|||
#(do
|
||||
(log/debug :call-jail :jail-id jail-id)
|
||||
(log/debug :call-jail :path path)
|
||||
(log/debug :call-jail :params params)
|
||||
;; this debug message can contain sensetive info
|
||||
#_(log/debug :call-jail :params params)
|
||||
(let [params' (update params :context assoc
|
||||
:debug js/goog.DEBUG
|
||||
:locale rn-dependencies/i18n.locale)
|
||||
|
|
Loading…
Reference in New Issue