1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Added command to export debug information from mobile and CLI

This commit is contained in:
Laurent Cozic
2017-11-21 18:48:50 +00:00
parent c5214b6c44
commit 3722012da5
23 changed files with 408 additions and 130 deletions

View File

@ -85,7 +85,9 @@ class Logger {
for (let i = 0; i < this.targets_.length; i++) {
const target = this.targets_[i];
if (target.type == 'database') {
return await target.database.selectAll('SELECT * FROM logs ORDER BY timestamp DESC LIMIT ' + limit);
let sql = 'SELECT * FROM logs ORDER BY timestamp DESC';
if (limit !== null) sql += ' LIMIT ' + limit
return await target.database.selectAll(sql);
}
}
return [];