remove logging of database encryption keys
This commit is contained in:
parent
5944d2b43f
commit
c948559c09
|
@ -26,7 +26,6 @@
|
||||||
"Returns -1 if the file does not exists, the schema version if it successfully
|
"Returns -1 if the file does not exists, the schema version if it successfully
|
||||||
decrypts it, throws error otherwise."
|
decrypts it, throws error otherwise."
|
||||||
[file-name encryption-key]
|
[file-name encryption-key]
|
||||||
(log/info "encrypted-realm-version\nfile: " file-name " buf " (str encryption-key) (nil? encryption-key))
|
|
||||||
(if encryption-key
|
(if encryption-key
|
||||||
(.schemaVersion rn-dependencies/realm file-name (to-buffer encryption-key))
|
(.schemaVersion rn-dependencies/realm file-name (to-buffer encryption-key))
|
||||||
(.schemaVersion rn-dependencies/realm file-name)))
|
(.schemaVersion rn-dependencies/realm file-name)))
|
||||||
|
@ -184,7 +183,6 @@
|
||||||
account/schemas
|
account/schemas
|
||||||
old-key)]
|
old-key)]
|
||||||
(log/info "copy old database")
|
(log/info "copy old database")
|
||||||
(log/info "with key: " (str new-key))
|
|
||||||
(.writeCopyTo old-account-db file-name (to-buffer new-key))
|
(.writeCopyTo old-account-db file-name (to-buffer new-key))
|
||||||
(log/info "old database copied")
|
(log/info "old database copied")
|
||||||
(close old-account-db)
|
(close old-account-db)
|
||||||
|
|
Loading…
Reference in New Issue