[Pkg-owncloud-commits] [owncloud-client] 23/94: Minor logging additions
Sandro Knauß
hefee at debian.org
Thu Mar 29 11:12:11 UTC 2018
This is an automated email from the git hooks/post-receive script.
hefee pushed a commit to branch upstream
in repository owncloud-client.
commit 51b662fdfeafea1035f2c33ab086619f8ec8e945
Author: Christian Kamm <mail at ckamm.de>
Date: Mon Jan 8 09:32:38 2018 +0100
Minor logging additions
- Clearly mark local and remote discovery start, to make this searchable
even without --logdebug.
- Promote two messages from debug to info: The 'N entries read from db'
message is useful and the 'read from db but ignored' message is rare
and surprising - if there's a bug there we want to see what happened in
the logs.
---
src/csync/csync.cpp | 4 ++++
src/csync/csync_update.cpp | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/csync/csync.cpp b/src/csync/csync.cpp
index 9343800..60e600c 100644
--- a/src/csync/csync.cpp
+++ b/src/csync/csync.cpp
@@ -85,6 +85,8 @@ int csync_update(CSYNC *ctx) {
csync_gettime(&start);
ctx->current = LOCAL_REPLICA;
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_INFO, "## Starting local discovery ##");
+
rc = csync_ftw(ctx, ctx->local.uri, csync_walker, MAX_DEPTH);
if (rc < 0) {
if(ctx->status_code == CSYNC_STATUS_OK) {
@@ -104,6 +106,8 @@ int csync_update(CSYNC *ctx) {
csync_gettime(&start);
ctx->current = REMOTE_REPLICA;
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_INFO, "## Starting remote discovery ##");
+
rc = csync_ftw(ctx, "", csync_walker, MAX_DEPTH);
if (rc < 0) {
if(ctx->status_code == CSYNC_STATUS_OK) {
diff --git a/src/csync/csync_update.cpp b/src/csync/csync_update.cpp
index b4787b2..74a53c8 100644
--- a/src/csync/csync_update.cpp
+++ b/src/csync/csync_update.cpp
@@ -497,7 +497,7 @@ static bool fill_tree_from_db(CSYNC *ctx, const char *uri)
* without a full remote discovery being triggered. */
CSYNC_EXCLUDE_TYPE excluded = csync_excluded_traversal(ctx, st->path, st->type);
if (excluded != CSYNC_NOT_EXCLUDED) {
- qDebug(lcUpdate, "%s excluded (%d)", st->path.constData(), excluded);
+ qInfo(lcUpdate, "%s excluded from db read (%d)", st->path.constData(), excluded);
if (excluded == CSYNC_FILE_EXCLUDE_AND_REMOVE
|| excluded == CSYNC_FILE_SILENTLY_EXCLUDED) {
@@ -516,7 +516,7 @@ static bool fill_tree_from_db(CSYNC *ctx, const char *uri)
ctx->status_code = CSYNC_STATUS_STATEDB_LOAD_ERROR;
return false;
}
- qDebug(lcUpdate, "%" PRId64 " entries read below path %s from db.", count, uri);
+ qInfo(lcUpdate, "%" PRId64 " entries read below path %s from db.", count, uri);
return true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list