mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
All: Removed certain log statements so that sensitive info doesn't end up in logs
This commit is contained in:
parent
9efbf74b6f
commit
9746a3964b
@ -143,7 +143,6 @@ class FileApiDriverLocal {
|
||||
}
|
||||
|
||||
async mkdir(path) {
|
||||
console.info('EXISTST ' + path, await this.fsDriver().exists(path));
|
||||
if (await this.fsDriver().exists(path)) return;
|
||||
|
||||
try {
|
||||
|
@ -34,19 +34,9 @@ class FsDriverRN {
|
||||
let output = [];
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
const item = items[i];
|
||||
console.info('ITEM', item);
|
||||
const relativePath = item.path.substr(path.length + 1);
|
||||
output.push(this.rnfsStatToStd_(item, relativePath));
|
||||
|
||||
// let stat = await this.stat(path + '/' + items[i]);
|
||||
// if (!stat) continue; // Has been deleted between the readdir() call and now
|
||||
// stat.path = stat.path.substr(path.length + 1);
|
||||
// output.push(stat);
|
||||
}
|
||||
|
||||
console.info('READ DIR', path);
|
||||
console.info(output);
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,8 @@ class Setting extends BaseModel {
|
||||
|
||||
if (c.value === value) return;
|
||||
|
||||
this.logger().info('Setting: ' + key + ' = ' + c.value + ' => ' + value);
|
||||
// Don't log this to prevent sensitive info (passwords, auth tokens...) to end up in logs
|
||||
// this.logger().info('Setting: ' + key + ' = ' + c.value + ' => ' + value);
|
||||
|
||||
c.value = value;
|
||||
|
||||
|
@ -92,14 +92,12 @@ class Synchronizer {
|
||||
if (local) {
|
||||
let s = [];
|
||||
s.push(local.id);
|
||||
if ('title' in local) s.push('"' + local.title + '"');
|
||||
line.push('(Local ' + s.join(', ') + ')');
|
||||
}
|
||||
|
||||
if (remote) {
|
||||
let s = [];
|
||||
s.push(remote.id ? remote.id : remote.path);
|
||||
if ('title' in remote) s.push('"' + remote.title + '"');
|
||||
line.push('(Remote ' + s.join(', ') + ')');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user