Masking the output of sensitive information in logs.
This commit is contained in:
		
							parent
							
								
									1b48aa072d
								
							
						
					
					
						commit
						3ea1d30e62
					
				
							
								
								
									
										8
									
								
								gorm.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								gorm.go
									
									
									
									
									
								
							| @ -325,6 +325,14 @@ func (db *DB) Debug() (tx *DB) { | ||||
| 	}) | ||||
| } | ||||
| 
 | ||||
| // Silent start silent mode
 | ||||
| func (db *DB) Silent() (tx *DB) { | ||||
| 	tx = db.getInstance() | ||||
| 	return tx.Session(&Session{ | ||||
| 		Logger: db.Logger.LogMode(logger.Silent), | ||||
| 	}) | ||||
| } | ||||
| 
 | ||||
| // Set store value with key into current db instance's context
 | ||||
| func (db *DB) Set(key string, value interface{}) *DB { | ||||
| 	tx := db.getInstance() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 崔士杰
						崔士杰