You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop: Reduce database logging statements
This commit is contained in:
@@ -140,7 +140,7 @@ class Note extends BaseItem {
|
|||||||
useAbsolutePaths: false,
|
useAbsolutePaths: false,
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
this.logger().info('replaceResourceInternalToExternalLinks', 'options:', options, 'body:', body);
|
this.logger().debug('replaceResourceInternalToExternalLinks', 'options:', options, 'body:', body);
|
||||||
|
|
||||||
const resourceIds = await this.linkedResourceIds(body);
|
const resourceIds = await this.linkedResourceIds(body);
|
||||||
const Resource = this.getClass('Resource');
|
const Resource = this.getClass('Resource');
|
||||||
@@ -153,7 +153,7 @@ class Note extends BaseItem {
|
|||||||
body = body.replace(new RegExp(`:/${id}`, 'gi'), markdownUtils.escapeLinkUrl(resourcePath));
|
body = body.replace(new RegExp(`:/${id}`, 'gi'), markdownUtils.escapeLinkUrl(resourcePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger().info('replaceResourceInternalToExternalLinks result', body);
|
this.logger().debug('replaceResourceInternalToExternalLinks result', body);
|
||||||
|
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
@@ -171,7 +171,7 @@ class Note extends BaseItem {
|
|||||||
pathsToTry.push(Resource.baseRelativeDirectoryPath());
|
pathsToTry.push(Resource.baseRelativeDirectoryPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger().info('replaceResourceExternalToInternalLinks', 'options:', options, 'pathsToTry:', pathsToTry, 'body:', body);
|
this.logger().debug('replaceResourceExternalToInternalLinks', 'options:', options, 'pathsToTry:', pathsToTry, 'body:', body);
|
||||||
|
|
||||||
for (const basePath of pathsToTry) {
|
for (const basePath of pathsToTry) {
|
||||||
const reStrings = [
|
const reStrings = [
|
||||||
@@ -189,7 +189,7 @@ class Note extends BaseItem {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger().info('replaceResourceExternalToInternalLinks result', body);
|
this.logger().debug('replaceResourceExternalToInternalLinks result', body);
|
||||||
|
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user