Help:Embedded query update/Notes on the logging output
From semantic-mediawiki.org
As part of the experimental status of the embedded query update feature, additional logging should be enabled to monitor the behavior of this feature.
Enable logging[edit]
To enable the logging add the following lines to the end of your "LocalSettings.php" file:
$wgDebugLogGroups = array(
'smw' => ".../tmp/logs/debug-smw-{$wgDBname}.log"
);
Note: See the path indicated here as a suggestion.
Example output[edit]
An example output for the QueryDependencyLinksStore
activities:
Shows that dependency have been updated to the QUERY_LINKS
table
2015-11-05 16:53:29 ...: SMW\PropertyHierarchyLookup::findMatchesFor _SUBC and Imported_vocabulary
2015-11-05 16:53:29 ...: SMW\SQLStore\QueryDependencyLinksStore::updateDependencyList insert for SID 116
2015-11-05 18:55:07 ...: SMW\SQLStore\QueryDependencyLinksStore::updateDependencyList insert for SID 10016
2015-11-05 18:55:08 ...: SMW\SQLStore\QueryDependencyLinksStore::updateDependencyList insert for SID 10112
Shows that an invalidation took place ParserCachePurgeJob
and that the DeferredRequestDispatcher
returned with a status of wasCompleted = true
and wasAccepted = true
.
2015-11-09 05:02:29 ...: SMW\DeferredRequestDispatchManager: {"host":"localhost","port":8080,"path":"\/mw\/index.php\/Special:DeferredRequestDispatcher","responseMessage":"HTTP\/1.0 202 Accepted\r\n","followedLocation":false,"wasCompleted":true,"wasAccepted":true,"connectionFailure":0,"requestProcTime":0.22293996810913}
2015-11-09 05:02:29 ...: SMW\MediaWiki\Jobs\ParserCachePurgeJob::findQueryTargetLinksBatches counted: 7 | offset: 0 for TestQuery
2015-11-09 05:02:30 ...: SMW\SQLStore\QueryDependencyLinksStore::addDependencyList suppressed (skewed time) for SID 14521
2015-11-09 05:03:20 ...: SMW\SQLStore\QueryDependencyLinksStore::updateDependencyList insert for SID 113
Query and dependencies are removed from tracking.
2015-11-09 00:11:03 ...: SMW\SQLStore\QueryDependencyLinksStore::pruneOutdatedTargetLinks remove 14512
2015-11-09 00:11:04 ...: SMW\DeferredRequestDispatchManager: {"host":"localhost","port":8080,"path":"\/mw\/index.php\/Special:DeferredRequestDispatcher","responseMessage":"HTTP\/1.0 202 Accepted\r\n","wasCompleted":true,"wasAccepted":true,"connectionFailure":0,"requestProcTime":0.31431794166565}
2015-11-09 00:11:04 ...: SMW\MediaWiki\Jobs\ParserCachePurgeJob::findQueryTargetLinksBatches counted: 3 | offset: 0 for TestQuery