log debug every sync file

This commit is contained in:
fyears
2022-01-05 00:24:21 +08:00
parent 8671ba4660
commit 313eff6a14
2 changed files with 27 additions and 4 deletions
+6 -2
View File
@@ -16,6 +16,9 @@ import {
import { isHiddenPath, isVaildText, mkdirpInVault } from "./misc";
import { RemoteClient } from "./remote";
import * as origLog from "loglevel";
const log = origLog.getLogger("rs-default");
export type SyncStatusType =
| "idle"
| "preparing"
@@ -573,9 +576,10 @@ export const doActualSync = async (
)) {
const k2 = k as string;
const v2 = v as FileOrFolderMixedState;
log.debug(`start syncing "${k2}" with plan ${JSON.stringify(v2)}`);
await dispatchOperationToActual(
k as string,
v as FileOrFolderMixedState,
k2,
v2,
client,
db,
vault,