Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Add missing constructors logging and print them as debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabixel committed Mar 14, 2023
1 parent 7c880ce commit f69f743
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ts/grid/ButtonFilterer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ButtonFilterer extends Logger {

this._gridManager = gridManager;

ButtonFilterer.logInfo(null, "Initialized!");
ButtonFilterer.logDebug(null, "Initialized!");
}

public setupInputs(
Expand Down
2 changes: 1 addition & 1 deletion src/ts/grid/ButtonSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ButtonSwap extends Logger {
this.initDocumentEvents();
this.setMouseDrag_1();

ButtonSwap.logInfo(null, "Initialized!");
ButtonSwap.logDebug(null, "Initialized!");
}

private mouseDrag_1 = (e: JQuery.MouseMoveEvent): void => {
Expand Down
9 changes: 6 additions & 3 deletions src/ts/grid/GridManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,22 @@ class GridManager extends Logger {
super();

this._$grid = $grid;
GridManager.logInfo(null, "Initialized!");
GridManager.logDebug(null, "Initialized!");
}

public setRows(newValue: number): void {
this._gridRows = newValue;

GridManager.logDebug(this.setRows, `Row size changed (${this._gridRows})`);
GridManager.logInfo(this.setRows, `Row size changed (${this._gridRows})`);
}

public setColumns(newValue: number): void {
this._gridCols = newValue;

GridManager.logDebug(this.setColumns, `Column size changed (${this._gridCols})`);
GridManager.logInfo(
this.setColumns,
`Column size changed (${this._gridCols})`
);
}

public resetSoundButtonCount(): void {
Expand Down
6 changes: 5 additions & 1 deletion src/ts/grid/GridResizer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Resize (rescale) logic for the {@link GridManager}
*/
class GridResizer {
class GridResizer extends Logger {
private _gridManager: GridManager;
private _buttonFilterer: ButtonFilterer;
private _soundButtonManager: SoundButtonManager;
Expand All @@ -13,9 +13,13 @@ class GridResizer {
soundButtonManager: SoundButtonManager,
buttonFilterer: ButtonFilterer
) {
super();

this._gridManager = gridManager;
this._buttonFilterer = buttonFilterer;
this._soundButtonManager = soundButtonManager;

GridResizer.logDebug(null, "Initialized!");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ts/grid/SoundButtonManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SoundButtonManager extends Logger {

this._$grid = $grid;

SoundButtonManager.logInfo(null, "Initialized!");
SoundButtonManager.logDebug(null, "Initialized!");
}

public generateButton(
Expand Down

0 comments on commit f69f743

Please sign in to comment.