mirror of https://github.com/keeweb/keeweb.git
fix #1166: prevent webdav password logging
This commit is contained in:
parent
2c064989c1
commit
0d126ae0d8
|
@ -730,7 +730,12 @@ const AppModel = Backbone.Model.extend({
|
|||
if (storage && Storage[storage].getPathForName && (!path || storage !== file.get('storage'))) {
|
||||
path = Storage[storage].getPathForName(file.get('name'));
|
||||
}
|
||||
logger.info('Sync started', storage, path, options);
|
||||
const optionsForLogging = _.clone(options);
|
||||
if (optionsForLogging && optionsForLogging.opts && optionsForLogging.opts.password) {
|
||||
optionsForLogging.opts = _.clone(optionsForLogging.opts);
|
||||
optionsForLogging.opts.password = '***';
|
||||
}
|
||||
logger.info('Sync started', storage, path, optionsForLogging);
|
||||
let fileInfo = this.getFileInfo(file);
|
||||
if (!fileInfo) {
|
||||
logger.info('Create new file info');
|
||||
|
|
Loading…
Reference in New Issue