mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
logging
This commit is contained in:
@@ -81,7 +81,7 @@ export class ClientStatisticsService {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.clientStatisticsRepository.query(query);
|
await this.clientStatisticsRepository.query(query);
|
||||||
//console.log(`Bulk updated ${this.bulkAsyncUpdates.length} statistics`)
|
//console.log(`Bulk updated ${Object.keys(this.bulkAsyncUpdates).length} statistics`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Bulk update failed:', error.message, query);
|
console.error('Bulk update failed:', error.message, query);
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export class ClientService {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.clientRepository.query(query);
|
await this.clientRepository.query(query);
|
||||||
console.log(`Bulk updated ${this.heartbeatBulkUpdate.length} client heartbeats`);
|
console.log(`Bulk updated ${Object.keys(this.heartbeatBulkUpdate).length} client heartbeats`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Bulk heartbeat failed:', error.message, 'Query:', query);
|
console.error('Bulk heartbeat failed:', error.message, 'Query:', query);
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user