Skip to content

Commit

Permalink
[BUGFIX beta] only LOG_VIEW_LOOKUPS in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinJoyce committed Jan 20, 2017
1 parent 9cbf9f3 commit cbac67a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/ember-routing/lib/system/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2299,10 +2299,12 @@ function buildRenderOptions(route, namePassed, isDefaultRender, _name, options)

assert(`Could not find "${name}" template, view, or component.`, isDefaultRender || template);

let LOG_VIEW_LOOKUPS = get(route.router, 'namespace.LOG_VIEW_LOOKUPS');
if (LOG_VIEW_LOOKUPS && !template) {
info(`Could not find "${name}" template. Nothing will be rendered`, { fullName: `template:${name}` });
}
runInDebug(() => {
let LOG_VIEW_LOOKUPS = get(route.router, 'namespace.LOG_VIEW_LOOKUPS');
if (LOG_VIEW_LOOKUPS && !template) {
info(`Could not find "${name}" template. Nothing will be rendered`, { fullName: `template:${name}` });
}
});

return renderOptions;
}
Expand Down

0 comments on commit cbac67a

Please sign in to comment.