mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-12 11:40:29 +08:00
Made logging consistent
This commit is contained in:
@@ -83,6 +83,9 @@ GarageServer.prototype.registerSocketEvents = function (options) {
|
||||
});
|
||||
|
||||
socket.on('event', function (data) {
|
||||
if (options.logging) {
|
||||
console.log('garageserver.io:: event ' + data);
|
||||
}
|
||||
if (options.OnEvent) {
|
||||
options.OnEvent(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user