mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-02 06:02:53 +02:00
Update sync.d
* Fix that the '.' were not being printed in --verbose mode for fetching the /delta response
This commit is contained in:
parent
1eff2d7d67
commit
380e3167f2
12
src/sync.d
12
src/sync.d
|
@ -704,15 +704,15 @@ class SyncEngine {
|
|||
currentDeltaLink = null;
|
||||
}
|
||||
|
||||
// Dynamic output for a non-verbose run so that the user knows something is happening
|
||||
if (log.verbose == 0) {
|
||||
// Dynamic output for non-verbose and verbose run so that the user knows something is being retreived from the OneDrive API
|
||||
if (log.verbose <= 1) {
|
||||
if (!appConfig.surpressLoggingOutput) {
|
||||
log.fileOnly("Fetching items from the OneDrive API for Drive ID: ", driveIdToQuery);
|
||||
// Use the dots to show the application is 'doing something'
|
||||
write("Fetching items from the OneDrive API for Drive ID: ", driveIdToQuery, " .");
|
||||
}
|
||||
} else {
|
||||
log.vlog("Fetching /delta response from the OneDrive API for Drive ID: ", driveIdToQuery);
|
||||
log.vdebug("Fetching /delta response from the OneDrive API for Drive ID: ", driveIdToQuery);
|
||||
}
|
||||
|
||||
// Create a new API Instance for querying /delta and initialise it
|
||||
|
@ -738,7 +738,7 @@ class SyncEngine {
|
|||
ulong nrChanges = count(deltaChanges["value"].array);
|
||||
int changeCount = 0;
|
||||
|
||||
if (log.verbose == 0) {
|
||||
if (log.verbose <= 1) {
|
||||
// Dynamic output for a non-verbose run so that the user knows something is happening
|
||||
if (!appConfig.surpressLoggingOutput) {
|
||||
write(".");
|
||||
|
@ -791,7 +791,7 @@ class SyncEngine {
|
|||
object.destroy(getDeltaQueryOneDriveApiInstance);
|
||||
|
||||
// Log that we have finished querying the /delta API
|
||||
if (log.verbose == 0) {
|
||||
if (log.verbose <= 1) {
|
||||
if (!appConfig.surpressLoggingOutput) {
|
||||
write("\n");
|
||||
}
|
||||
|
@ -2367,7 +2367,7 @@ class SyncEngine {
|
|||
// Display accountType, defaultDriveId, defaultRootId & remainingFreeSpace for verbose logging purposes
|
||||
//log.vlog("Application version: ", strip(import("version")));
|
||||
|
||||
string tempVersion = "v2.5.0-alpha-2" ~ " GitHub version: " ~ strip(import("version"));
|
||||
string tempVersion = "v2.5.0-alpha-3" ~ " GitHub version: " ~ strip(import("version"));
|
||||
log.vlog("Application version: ", tempVersion);
|
||||
|
||||
log.vlog("Account Type: ", appConfig.accountType);
|
||||
|
|
Loading…
Reference in a new issue