id = './' + id;
}
- debug('RELATIVE: requested:' + request +
- ' set ID to: ' + id + ' from ' + parent.id);
+ debug('RELATIVE: requested: %s set ID to: %s from %s', request, id,
+ parent.id);
return [id, [path.dirname(parent.filename)]];
};
// object.
Module._load = function(request, parent, isMain) {
if (parent) {
- debug('Module._load REQUEST ' + (request) + ' parent: ' + parent.id);
+ debug('Module._load REQUEST %s parent: %s', request, parent.id);
}
// REPL is a special case, because it needs the real require.
}
if (NativeModule.nonInternalExists(filename)) {
- debug('load native module ' + request);
+ debug('load native module %s', request);
return NativeModule.require(filename);
}
var paths = resolvedModule[1];
// look up the filename first, since that's the cache key.
- debug('looking for ' + JSON.stringify(id) +
- ' in ' + JSON.stringify(paths));
+ debug('looking for %j in %j', id, paths);
var filename = Module._findPath(request, paths);
if (!filename) {
// Given a file name, pass it to the proper extension handler.
Module.prototype.load = function(filename) {
- debug('load ' + JSON.stringify(filename) +
- ' for module ' + JSON.stringify(this.id));
+ debug('load %j for module %j', filename, this.id);
assert(!this.loaded);
this.filename = filename;