@@ -35,7 +35,6 @@ export class GetPreparedConfigWithUsersHandler
35
35
let config : XRayConfig | null = null ;
36
36
const inboundsUserSets : Map < string , HashedSet > = new Map ( ) ;
37
37
try {
38
- // TODO: cleanup logs
39
38
const { configProfileUuid, activeInbounds } = query ;
40
39
41
40
const configProfile = await this . queryBus . execute (
@@ -55,28 +54,19 @@ export class GetPreparedConfigWithUsersHandler
55
54
56
55
config . processCertificates ( ) ;
57
56
58
- const start = Date . now ( ) ;
59
57
const configHash = config . getConfigHash ( ) ;
60
- this . logger . log ( `Config hash: ${ configHash } in ${ Date . now ( ) - start } ms` ) ;
61
58
62
59
const usersStream = this . usersRepository . getUsersForConfigStream (
63
60
configProfileUuid ,
64
61
activeInbounds ,
65
62
) ;
66
63
67
- const startUserBatch = Date . now ( ) ;
68
64
for await ( const userBatch of usersStream ) {
69
65
config . includeUserBatch ( userBatch , inboundsUserSets ) ;
70
66
}
71
- const endUserBatch = Date . now ( ) ;
72
- this . logger . log ( `User batch in ${ endUserBatch - startUserBatch } ms` ) ;
73
67
74
68
for ( const [ tag , set ] of inboundsUserSets ) {
75
- this . logger . log ( `Inbound ${ tag } has ${ set . size } users` ) ;
76
- }
77
-
78
- for ( const [ tag , set ] of inboundsUserSets ) {
79
- this . logger . log ( `Inbound ${ tag } has ${ set . hash64String } ...` ) ;
69
+ this . logger . debug ( `Inbound ${ tag } : hash ${ set . hash64String } and ${ set . size } users` ) ;
80
70
}
81
71
82
72
return {
0 commit comments