mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:32:25 -05:00 
			
		
		
		
	[bug] maxprocs set logger to nil (#1512)
We want to set the Logger to nil, but that means we still need to wrap it in `maxprocs.Logger()`.
This commit is contained in:
		
					parent
					
						
							
								68e6d08c76
							
						
					
				
			
			
				commit
				
					
						1ca5c62e25
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -62,7 +62,7 @@ import ( | ||||||
| 
 | 
 | ||||||
| // Start creates and starts a gotosocial server | // Start creates and starts a gotosocial server | ||||||
| var Start action.GTSAction = func(ctx context.Context) error { | var Start action.GTSAction = func(ctx context.Context) error { | ||||||
| 	_, err := maxprocs.Set(nil) | 	_, err := maxprocs.Set(maxprocs.Logger(nil)) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return fmt.Errorf("failed to set CPU limits from cgroup: %s", err) | 		return fmt.Errorf("failed to set CPU limits from cgroup: %s", err) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue