1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-21 17:15:45 +02:00

csync.reconciler: show the correct type: "file" or "dir"

This commit is contained in:
Christian Jann 2011-04-12 17:59:25 +02:00
parent deb620b5be
commit 9c40ecafc4

View File

@ -240,17 +240,37 @@ static int _csync_merge_algorithm_visitor(void *obj, void *data) {
//only show these messages on log level trace
if(cur->instruction ==CSYNC_INSTRUCTION_NONE)
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE,
"%s file: %s",
csync_instruction_str(cur->instruction),
cur->path);
if(cur->type == CSYNC_FTW_TYPE_DIR)
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE,
"%s dir: %s",
csync_instruction_str(cur->instruction),
cur->path);
}
else
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE,
"%s file: %s",
csync_instruction_str(cur->instruction),
cur->path);
}
}
else
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
"%s file: %s",
csync_instruction_str(cur->instruction),
cur->path);
if(cur->type == CSYNC_FTW_TYPE_DIR)
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
"%s dir: %s",
csync_instruction_str(cur->instruction),
cur->path);
}
else
{
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,
"%s file: %s",
csync_instruction_str(cur->instruction),
cur->path);
}
}
return 0;