MCPcopy
hub / github.com/ampproject/amphtml / log

Function log

build-system/server/amp4test.js:19–23  ·  view source on GitHub ↗

* Logs the given messages to the console when --verbose is specified. * @param {*} messages

(...messages)

Source from the content-addressed store, hash-verified

17 * @param {*} messages
18 */
19function log(...messages) {
20 if (argv.verbose) {
21 console.log.apply(console, messages);
22 }
23}
24
25app.use('/compose-doc', function (req, res) {
26 res.setHeader('X-XSS-Protection', '0');

Callers 8

amp4test.jsFile · 0.70
passthroughServeModeCdnFunction · 0.70
buildNewServerFunction · 0.70
logServeModeFunction · 0.70
syncIncidentFunction · 0.50
addCommentFunction · 0.50
analytics.jsFile · 0.50
a4a-envelopes.jsFile · 0.50

Calls 1

applyMethod · 0.80

Tested by

no test coverage detected