Skip to content

Commit

Permalink
fix(root): 🔇 remove print version
Browse files Browse the repository at this point in the history
Closes #415
  • Loading branch information
thierrymichel committed Jul 16, 2019
1 parent c7d2e70 commit be5aa73
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class Core {
) {
// 0. Set logger level and print version
Logger.setLevel(debug === true ? 'debug' : logLevel);
this.logger.print(this.version);
this.logger.info(this.version);

// 1. Manage options
Object.keys(schema).forEach(k => {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/modules/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export class Logger {
/**
* Permanent, unremovable log.
*/
public print(...objects: any[]): void {
this._log(console.info, LogLevels.off, objects);
}
// public print(...objects: any[]): void {
// this._log(console.info, LogLevels.off, objects);
// }

/**
* Error log.
Expand Down
2 changes: 1 addition & 1 deletion packages/css/src/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Css implements IBarbaPlugin<{}> {
*/
public install(barba: Core) {
this.logger = new barba.Logger(this.name);
this.logger.print(this.version);
this.logger.info(this.version);
this.barba = barba;
this._appear = this._appear.bind(this);
this._leave = this._leave.bind(this);
Expand Down
2 changes: 1 addition & 1 deletion packages/prefetch/src/prefetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Prefetch implements IBarbaPlugin<IPrefetchOptions> {
{ root = document.body, timeout = 2e3 }: IPrefetchOptions = {}
) {
this.logger = new barba.Logger(this.name);
this.logger.print(this.version);
this.logger.info(this.version);
this.barba = barba;
this.root = root;
this.timeout = timeout;
Expand Down
2 changes: 1 addition & 1 deletion packages/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Router implements IBarbaPlugin<IRouterOptions> {
*/
public install(barba: Core, { routes = [] }: IRouterOptions = {}) {
this.logger = new barba.Logger(this.name);
this.logger.print(this.version);
this.logger.info(this.version);
this.barba = barba;

routes.forEach(route => {
Expand Down

0 comments on commit be5aa73

Please sign in to comment.