From ba8d2ad8efc130df5b82f94970f106eada26f227 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Thu, 17 Jul 2014 16:36:56 +0200 Subject: 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 Reviewed-by: Christian Kandeler --- src/lib/corelib/buildgraph/executor.cpp | 12 ++++++++---- 1 file 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; } -- cgit v1.2.3