reduce log spam

This commit is contained in:
peter
2020-09-15 20:29:52 +02:00
parent c2576180c7
commit eb58ffc013
4 changed files with 6 additions and 6 deletions
+3 -1
View File
@@ -125,7 +125,9 @@ export class FrontworkAdmin
} }
], { ], {
errorHandler: (sock, err, rpc, args) => { errorHandler: (sock, err, rpc, args) => {
console.log(rpc, err); console.log("RPC", rpc)
console.log("ERR", err)
console.log("ARGS", args)
} }
}) })
.attach(httpServer) .attach(httpServer)
+1 -1
View File
@@ -132,7 +132,7 @@ export class UserManager
] ]
initialize = async () => { initialize = async () => {
this.exporters = [this, this.guild, this.item, this.raid, this.character] this.exporters = [this.guild, this.item, this.raid, this.character]
//set up permissions //set up permissions
getLogger('UserManager#initialize').debug('setting up permissions') getLogger('UserManager#initialize').debug('setting up permissions')
@@ -187,7 +187,6 @@ export class FrontcraftRaidComponent
} }
display = async (raiddata: RaidData) => { display = async (raiddata: RaidData) => {
this.logger.log(raiddata)
this.isTier = allItems[raiddata.tier] != null this.isTier = allItems[raiddata.tier] != null
this.raid = raiddata this.raid = raiddata
@@ -31,7 +31,7 @@ export class ClientApiService implements IApiService{
try{ try{
const sock = new RPCSocket( const sock = new RPCSocket(
auth.port, auth.port,
window.location.hostname window.location.hostname,
) )
sock.hook('kick', () => { sock.hook('kick', () => {
@@ -48,7 +48,7 @@ export class ClientApiService implements IApiService{
sock.on('error', async (e) => { sock.on('error', async (e) => {
this.logger.log("priv#error", e); this.logger.log("priv#error", e);
await this.logout()
//handled via unprivileged socket //handled via unprivileged socket
}) })
const authSock = await sock.connect(auth.token.value) const authSock = await sock.connect(auth.token.value)
@@ -95,7 +95,6 @@ export class ClientApiService implements IApiService{
throw new Error("Login failed") throw new Error("Login failed")
} }
//attach error handler now so failed logins dont trigger reloads
this.socket.on('error', async (err) => { this.socket.on('error', async (err) => {
location.reload() location.reload()
}) })