Replace `RNP:` debug prefix with `Metro:`

Reviewed By: jeanlauliac

Differential Revision: D5236970

fbshipit-source-id: 8bd1d38f009018e9cafef13188bee82351614890
This commit is contained in:
David Aurelio 2017-06-14 04:52:12 -07:00 committed by Facebook Github Bot
parent 7e9f368ee5
commit fdc8f37a5b
8 changed files with 9 additions and 9 deletions

View File

@ -16,7 +16,7 @@ const ModuleTransport = require('../lib/ModuleTransport');
const _ = require('lodash'); const _ = require('lodash');
const crypto = require('crypto'); const crypto = require('crypto');
const debug = require('debug')('RNP:Bundle'); const debug = require('debug')('Metro:Bundle');
const invariant = require('fbjs/lib/invariant'); const invariant = require('fbjs/lib/invariant');
const {createRamBundleGroups} = require('./util'); const {createRamBundleGroups} = require('./util');

View File

@ -13,7 +13,7 @@
const assert = require('assert'); const assert = require('assert');
const crypto = require('crypto'); const crypto = require('crypto');
const debug = require('debug')('RNP:Bundler'); const debug = require('debug')('Metro:Bundler');
const emptyFunction = require('fbjs/lib/emptyFunction'); const emptyFunction = require('fbjs/lib/emptyFunction');
const fs = require('fs'); const fs = require('fs');
const Transformer = require('../JSTransformer'); const Transformer = require('../JSTransformer');

View File

@ -14,7 +14,7 @@
const Logger = require('../Logger'); const Logger = require('../Logger');
const debug = require('debug')('RNP:JStransformer'); const debug = require('debug')('Metro:JStransformer');
const denodeify: Denodeify = require('denodeify'); const denodeify: Denodeify = require('denodeify');
const invariant = require('fbjs/lib/invariant'); const invariant = require('fbjs/lib/invariant');
const path = require('path'); const path = require('path');

View File

@ -16,7 +16,7 @@ const AssetServer = require('../AssetServer');
const Bundler = require('../Bundler'); const Bundler = require('../Bundler');
const MultipartResponse = require('./MultipartResponse'); const MultipartResponse = require('./MultipartResponse');
const debug = require('debug')('RNP:Server'); const debug = require('debug')('Metro:Server');
const defaults = require('../defaults'); const defaults = require('../defaults');
const emptyFunction = require('fbjs/lib/emptyFunction'); const emptyFunction = require('fbjs/lib/emptyFunction');
const getMaxWorkers = require('../lib/getMaxWorkers'); const getMaxWorkers = require('../lib/getMaxWorkers');

View File

@ -11,7 +11,7 @@
'use strict'; 'use strict';
const concat = require('concat-stream'); const concat = require('concat-stream');
const debug = require('debug')('RNP:Symbolication'); const debug = require('debug')('Metro:Symbolication');
const net = require('net'); const net = require('net');
const temp = require('temp'); const temp = require('temp');
const xpipe = require('xpipe'); const xpipe = require('xpipe');

View File

@ -110,7 +110,7 @@ function enableDebug() {
// To enable debugging, we need to set our pattern or append it to any // To enable debugging, we need to set our pattern or append it to any
// existing pre-configured pattern to avoid disabling logging for // existing pre-configured pattern to avoid disabling logging for
// other packages // other packages
var debugPattern = 'RNP:*'; var debugPattern = 'Metro:*';
var existingPattern = debug.load(); var existingPattern = debug.load();
if (existingPattern) { if (existingPattern) {
debugPattern += ',' + existingPattern; debugPattern += ',' + existingPattern;

View File

@ -15,7 +15,7 @@
const TempDirs = require('./TempDirs'); const TempDirs = require('./TempDirs');
const crypto = require('crypto'); const crypto = require('crypto');
const debugRead = require('debug')('RNP:TransformCache:Read'); const debugRead = require('debug')('Metro:TransformCache:Read');
const fs = require('fs'); const fs = require('fs');
const invariant = require('fbjs/lib/invariant'); const invariant = require('fbjs/lib/invariant');
const mkdirp = require('mkdirp'); const mkdirp = require('mkdirp');
@ -101,7 +101,7 @@ class FileBasedCache {
path.isAbsolute(rootPath), path.isAbsolute(rootPath),
'root path of the transform cache must be absolute', 'root path of the transform cache must be absolute',
); );
require('debug')('RNP:TransformCache:Dir')( require('debug')('Metro:TransformCache:Dir')(
`transform cache directory: ${rootPath}`, `transform cache directory: ${rootPath}`,
); );
this._rootPath = rootPath; this._rootPath = rootPath;

View File

@ -16,7 +16,7 @@ const AsyncTaskGroup = require('../lib/AsyncTaskGroup');
const MapWithDefaults = require('../lib/MapWithDefaults'); const MapWithDefaults = require('../lib/MapWithDefaults');
const ModuleResolution = require('./ModuleResolution'); const ModuleResolution = require('./ModuleResolution');
const debug = require('debug')('RNP:DependencyGraph'); const debug = require('debug')('Metro:DependencyGraph');
const isAbsolutePath = require('absolute-path'); const isAbsolutePath = require('absolute-path');
const path = require('path'); const path = require('path');