1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Android: Verbose mode for synchronizer

This commit is contained in:
Laurent Cozic 2021-06-16 10:43:39 +01:00
parent fd769945b1
commit 4bbb3d1d58
2 changed files with 8 additions and 2 deletions

View File

@ -65,4 +65,4 @@ if [[ $COMMANDS != "" ]]; then
fi
cd "$ROOT_DIR/packages/app-desktop"
npm start -- --env dev --profile "$PROFILE_DIR"
npm start -- --profile "$PROFILE_DIR"

View File

@ -46,6 +46,8 @@ function isCannotSyncError(error: any): boolean {
export default class Synchronizer {
public static verboseMode: boolean = true;
private db_: any;
private api_: any;
private appType_: string;
@ -195,7 +197,11 @@ export default class Synchronizer {
line.push(`(Remote ${s.join(', ')})`);
}
this.logger().debug(line.join(': '));
if (Synchronizer.verboseMode) {
this.logger().info(line.join(': '));
} else {
this.logger().debug(line.join(': '));
}
if (!this.progressReport_[action]) this.progressReport_[action] = 0;
this.progressReport_[action] += actionCount;