mirror of https://github.com/status-im/metro.git
Replace `RNP:` debug prefix with `Metro:`
Reviewed By: jeanlauliac Differential Revision: D5236970 fbshipit-source-id: 8bd1d38f009018e9cafef13188bee82351614890
This commit is contained in:
parent
7e9f368ee5
commit
fdc8f37a5b
|
@ -16,7 +16,7 @@ const ModuleTransport = require('../lib/ModuleTransport');
|
|||
|
||||
const _ = require('lodash');
|
||||
const crypto = require('crypto');
|
||||
const debug = require('debug')('RNP:Bundle');
|
||||
const debug = require('debug')('Metro:Bundle');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
|
||||
const {createRamBundleGroups} = require('./util');
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
const assert = require('assert');
|
||||
const crypto = require('crypto');
|
||||
const debug = require('debug')('RNP:Bundler');
|
||||
const debug = require('debug')('Metro:Bundler');
|
||||
const emptyFunction = require('fbjs/lib/emptyFunction');
|
||||
const fs = require('fs');
|
||||
const Transformer = require('../JSTransformer');
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
const Logger = require('../Logger');
|
||||
|
||||
const debug = require('debug')('RNP:JStransformer');
|
||||
const debug = require('debug')('Metro:JStransformer');
|
||||
const denodeify: Denodeify = require('denodeify');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
const path = require('path');
|
||||
|
|
|
@ -16,7 +16,7 @@ const AssetServer = require('../AssetServer');
|
|||
const Bundler = require('../Bundler');
|
||||
const MultipartResponse = require('./MultipartResponse');
|
||||
|
||||
const debug = require('debug')('RNP:Server');
|
||||
const debug = require('debug')('Metro:Server');
|
||||
const defaults = require('../defaults');
|
||||
const emptyFunction = require('fbjs/lib/emptyFunction');
|
||||
const getMaxWorkers = require('../lib/getMaxWorkers');
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
'use strict';
|
||||
|
||||
const concat = require('concat-stream');
|
||||
const debug = require('debug')('RNP:Symbolication');
|
||||
const debug = require('debug')('Metro:Symbolication');
|
||||
const net = require('net');
|
||||
const temp = require('temp');
|
||||
const xpipe = require('xpipe');
|
||||
|
|
|
@ -110,7 +110,7 @@ function enableDebug() {
|
|||
// To enable debugging, we need to set our pattern or append it to any
|
||||
// existing pre-configured pattern to avoid disabling logging for
|
||||
// other packages
|
||||
var debugPattern = 'RNP:*';
|
||||
var debugPattern = 'Metro:*';
|
||||
var existingPattern = debug.load();
|
||||
if (existingPattern) {
|
||||
debugPattern += ',' + existingPattern;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
const TempDirs = require('./TempDirs');
|
||||
|
||||
const crypto = require('crypto');
|
||||
const debugRead = require('debug')('RNP:TransformCache:Read');
|
||||
const debugRead = require('debug')('Metro:TransformCache:Read');
|
||||
const fs = require('fs');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
const mkdirp = require('mkdirp');
|
||||
|
@ -101,7 +101,7 @@ class FileBasedCache {
|
|||
path.isAbsolute(rootPath),
|
||||
'root path of the transform cache must be absolute',
|
||||
);
|
||||
require('debug')('RNP:TransformCache:Dir')(
|
||||
require('debug')('Metro:TransformCache:Dir')(
|
||||
`transform cache directory: ${rootPath}`,
|
||||
);
|
||||
this._rootPath = rootPath;
|
||||
|
|
|
@ -16,7 +16,7 @@ const AsyncTaskGroup = require('../lib/AsyncTaskGroup');
|
|||
const MapWithDefaults = require('../lib/MapWithDefaults');
|
||||
const ModuleResolution = require('./ModuleResolution');
|
||||
|
||||
const debug = require('debug')('RNP:DependencyGraph');
|
||||
const debug = require('debug')('Metro:DependencyGraph');
|
||||
const isAbsolutePath = require('absolute-path');
|
||||
const path = require('path');
|
||||
|
||||
|
|
Loading…
Reference in New Issue