style: Fancier logging
This commit is contained in:
		
							parent
							
								
									3c99016687
								
							
						
					
					
						commit
						0a26c2e5ab
					
				| @ -15,11 +15,12 @@ class AuthDb { | ||||
| 
 | ||||
|   setUserName(userId: string, newUsername: string) { | ||||
|     this.client.prepare('UPDATE user SET username = ? WHERE id = ?').run(newUsername, userId); | ||||
|     console.log('wam bam'); | ||||
|     console.log(`\x1b[35m[AUTHDB]\x1b[0m changed username for ${userId} to ${newUsername}`); | ||||
|   } | ||||
| 
 | ||||
|   setUserImage(userId: string, image: string) { | ||||
|     this.client.prepare('UPDATE user SET image = ? WHERE id = ?').run(image, userId); | ||||
|     console.log(`\x1b[35m[AUTHDB]\x1b[0m changed pfp for ${userId} to ${image}`); | ||||
|   } | ||||
| 
 | ||||
|   getUser(userId: string): Profile { | ||||
|  | ||||
| @ -50,7 +50,7 @@ class MinioClient { | ||||
|     try { | ||||
|       const bucket = 'profile-photos'; | ||||
|       if (!(await this.client.bucketExists(bucket))) { | ||||
|         console.log(`Creating bucket '${bucket}', as it is required but does not exist.`); | ||||
|         console.log(`\x1b[35m[S3]\x1b[0m Creating bucket '${bucket}', as it is required but does not exist.`); | ||||
|         this.client.makeBucket(bucket); | ||||
|       } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user