aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-07-17 16:36:56 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-07-17 16:57:24 +0200
commitba8d2ad8efc130df5b82f94970f106eada26f227 (patch)
tree3525f6dbd3a6fa932635d04bbca86d5c89cd54f9
parentd256a3de2672e68ebb5c22d689488b332a293d04 (diff)
extend debug output of the up-to-date check
It's sometimes valuable to know which file a timestamp belongs to... Change-Id: I41e748840bb07ff9755f33769b1b97b19066871a Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
-rw-r--r--src/lib/corelib/buildgraph/executor.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp
index 92b664007..8371ffad9 100644
--- a/src/lib/corelib/buildgraph/executor.cpp
+++ b/src/lib/corelib/buildgraph/executor.cpp
@@ -335,9 +335,11 @@ bool Executor::isUpToDate(Artifact *artifact) const
foreach (Artifact *childArtifact, ArtifactSet::fromNodeSet(artifact->children)) {
QBS_CHECK(childArtifact->timestamp().isValid());
- if (m_doDebug)
+ if (m_doDebug) {
m_logger.qbsDebug() << "[UTD] child timestamp "
- << childArtifact->timestamp().toString();
+ << childArtifact->timestamp().toString() << " "
+ << childArtifact->filePath();
+ }
if (artifact->timestamp() < childArtifact->timestamp())
return false;
}
@@ -347,9 +349,11 @@ bool Executor::isUpToDate(Artifact *artifact) const
FileInfo fi(fileDependency->filePath());
fileDependency->setTimestamp(fi.lastModified());
}
- if (m_doDebug)
+ if (m_doDebug) {
m_logger.qbsDebug() << "[UTD] file dependency timestamp "
- << fileDependency->timestamp().toString();
+ << fileDependency->timestamp().toString() << " "
+ << fileDependency->filePath();
+ }
if (artifact->timestamp() < fileDependency->timestamp())
return false;
}