mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix Log._getCallerDetails() regex.
1. Now it matches `logging:test`, not `logging:tests`. 2. Now it is okay with server-side source maps, by matching `/packages/logging/foo.js` in addition to `/packages/logging.js`.
This commit is contained in:
@@ -97,8 +97,7 @@ Log._getCallerDetails = function () {
|
||||
return {file: "eval"};
|
||||
}
|
||||
|
||||
// XXX probably wants to be / or .js in case no source maps
|
||||
if (!line.match(/packages\/logging(?:\/|(?::tests)?\.js)/))
|
||||
if (!line.match(/packages\/logging(?:\/|(?::test)?(\/|\.js))/))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -181,4 +181,3 @@ Tinytest.add("logging - format", function (test) {
|
||||
level.charAt(0).toUpperCase() + '20120908-07:06:05.004' + utcOffsetStr + ' (app.js:42) message');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user