mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	use log instead of fmt to obey the -log flag
This commit is contained in:
		
							parent
							
								
									a1481bc29e
								
							
						
					
					
						commit
						c35b201685
					
				@ -1,7 +1,6 @@
 | 
			
		||||
package setup
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"io"
 | 
			
		||||
	"log"
 | 
			
		||||
	"os"
 | 
			
		||||
@ -108,7 +107,7 @@ func errorsParse(c *Controller) (*errors.ErrorHandler, error) {
 | 
			
		||||
				where = filepath.Join(c.Root, where)
 | 
			
		||||
				f, err := os.Open(where)
 | 
			
		||||
				if err != nil {
 | 
			
		||||
					fmt.Println("Warning: Unable to open error page '" + where + "': " + err.Error())
 | 
			
		||||
					log.Printf("[WARNING] Unable to open error page '%s': %v", where, err)
 | 
			
		||||
				}
 | 
			
		||||
				f.Close()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user