Purge no-op history events
This commit is contained in:
parent
3b88f98fd9
commit
ab5336f567
4 changed files with 2 additions and 36 deletions
|
|
@ -8,7 +8,6 @@ export interface SyncSettings {
|
|||
fetchChangesUpdateIntervalMs: number;
|
||||
syncConcurrency: number;
|
||||
isSyncEnabled: boolean;
|
||||
displayNoopSyncEvents: boolean;
|
||||
minimumLogLevel: LogLevel;
|
||||
maxFileSizeMB: number;
|
||||
}
|
||||
|
|
@ -20,7 +19,6 @@ const DEFAULT_SETTINGS: SyncSettings = {
|
|||
fetchChangesUpdateIntervalMs: 1000,
|
||||
syncConcurrency: 1,
|
||||
isSyncEnabled: false,
|
||||
displayNoopSyncEvents: false,
|
||||
minimumLogLevel: LogLevel.INFO,
|
||||
maxFileSizeMB: 10
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ export enum SyncSource {
|
|||
}
|
||||
|
||||
export enum SyncStatus {
|
||||
NO_OP = "NO_OP",
|
||||
SUCCESS = "SUCCESS",
|
||||
ERROR = "ERROR"
|
||||
}
|
||||
|
|
@ -83,15 +82,11 @@ export class SyncHistory {
|
|||
this.logger.info(
|
||||
`History entry: ${entry.relativePath} - ${entry.message}`
|
||||
);
|
||||
} else if (entry.status === SyncStatus.ERROR) {
|
||||
} else {
|
||||
this.status.error++;
|
||||
this.logger.error(
|
||||
`Error syncing file: ${entry.relativePath} - ${entry.message}`
|
||||
);
|
||||
} else {
|
||||
this.logger.debug(
|
||||
`No-op syncing file: ${entry.relativePath} - ${entry.message}`
|
||||
);
|
||||
}
|
||||
|
||||
this.syncHistoryUpdateListeners.forEach((listener) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue