mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-20 14:46:35 +02:00
Revert the config & logpath change and check correct input entry (#1270)
* Revert the config & logpath change introduced via #1267 as the logging path should not be the value checked, the input path is what should be checked
This commit is contained in:
parent
3ba8bb165a
commit
3ea16b619f
|
@ -453,8 +453,6 @@ int main(string[] args)
|
||||||
|
|
||||||
// vdebug syncDir as set and calculated
|
// vdebug syncDir as set and calculated
|
||||||
log.vdebug("syncDir: ", syncDir);
|
log.vdebug("syncDir: ", syncDir);
|
||||||
// As we use the cfg value of sync_dir elsewhere, and if it includes a ~ it is now correctly expanded, update the configuration with new expanded value
|
|
||||||
cfg.setValueString("sync_dir", syncDir);
|
|
||||||
|
|
||||||
// Configure the logging directory if different from application default
|
// Configure the logging directory if different from application default
|
||||||
// log_dir environment handling to handle ~ expansion properly
|
// log_dir environment handling to handle ~ expansion properly
|
||||||
|
|
|
@ -2973,7 +2973,7 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
|
|
||||||
// scan for changes in the path provided
|
// scan for changes in the path provided
|
||||||
if (isDir(logPath)) {
|
if (isDir(path)) {
|
||||||
// if this path is a directory, output this message.
|
// if this path is a directory, output this message.
|
||||||
// if a file, potentially leads to confusion as to what the client is actually doing
|
// if a file, potentially leads to confusion as to what the client is actually doing
|
||||||
log.vlog("Uploading differences of ", logPath);
|
log.vlog("Uploading differences of ", logPath);
|
||||||
|
@ -3095,7 +3095,7 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
|
|
||||||
// scan for changes in the path provided
|
// scan for changes in the path provided
|
||||||
if (isDir(logPath)) {
|
if (isDir(path)) {
|
||||||
// if this path is a directory, output this message.
|
// if this path is a directory, output this message.
|
||||||
// if a file, potentially leads to confusion as to what the client is actually doing
|
// if a file, potentially leads to confusion as to what the client is actually doing
|
||||||
log.vlog("Uploading new items of ", logPath);
|
log.vlog("Uploading new items of ", logPath);
|
||||||
|
|
Loading…
Reference in a new issue