Implement logger on pusher
This commit is contained in:
parent
6a195be814
commit
dd89f12c2e
15 changed files with 263 additions and 72 deletions
|
@ -11,6 +11,7 @@
|
|||
import { Zone, ZoneEventListener } from "./Zone";
|
||||
import { ViewportInterface } from "_Model/Websocket/ViewportMessage";
|
||||
import { ExSocketInterface } from "_Model/Websocket/ExSocketInterface";
|
||||
import log from "../Services/Logger";
|
||||
//import Debug from "debug";
|
||||
|
||||
//const debug = Debug('positiondispatcher');
|
||||
|
@ -44,7 +45,7 @@ export class PositionDispatcher {
|
|||
*/
|
||||
public setViewport(socket: ExSocketInterface, viewport: ViewportInterface): void {
|
||||
if (viewport.left > viewport.right || viewport.top > viewport.bottom) {
|
||||
console.warn("Invalid viewport received: ", viewport);
|
||||
log.warn("Invalid viewport received: ", viewport);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue