Skip to content

Commit

Permalink
fix(logging): Remove raw snapshots, etc.
Browse files Browse the repository at this point in the history
If you console.log something with the DevTools open, it does not get
garbage collected.
  • Loading branch information
cartant committed Nov 23, 2017
1 parent 6a2ee97 commit 756b32d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions source/plugin/log-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ export class LogPlugin extends BasePlugin {
logger_.groupEnd();
}

logger_.groupCollapsed("Raw observable");
logger_.log(observable);
logger_.groupEnd();
logger_.groupEnd();
}
}
Expand Down
3 changes: 0 additions & 3 deletions source/spy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ export function show(match: any, partialLogger: PartialLogger = defaultLogger):
logger.groupEnd();
});
logger.groupEnd();
logger.groupCollapsed("Raw snapshot");
logger.log(observableSnapshot);
logger.groupEnd();
logger.groupEnd();
});
logger.groupEnd();
Expand Down

0 comments on commit 756b32d

Please sign in to comment.