mirror of
				https://github.com/fluffle/goirc
				synced 2025-11-04 03:58:03 +00:00 
			
		
		
		
	Don't change the depth of golog's default logger. Not cool, man!
This commit is contained in:
		
							parent
							
								
									97dedfdf5e
								
							
						
					
					
						commit
						4396b459a2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -9,7 +9,7 @@ import (
 | 
			
		|||
// Just import this package alongside goirc/client and call
 | 
			
		||||
// golog.Init() in your main() to set things up.
 | 
			
		||||
func Init() {
 | 
			
		||||
	l := log.InitFromFlags()
 | 
			
		||||
	l := log.NewFromFlags()
 | 
			
		||||
	l.SetDepth(1)
 | 
			
		||||
	logging.SetLogger(l)
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue