mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	Change the log flags to be a variable that can be set prior to calling Run (#6546)
Signed-off-by: Jeffrey Damick <jdamick@amazon.com> Co-authored-by: Jeffrey Damick <jdamick@amazon.com>
This commit is contained in:
		| @@ -45,7 +45,7 @@ func Run() { | ||||
| 	} | ||||
|  | ||||
| 	log.SetOutput(os.Stdout) | ||||
| 	log.SetFlags(0) // Set to 0 because we're doing our own time, with timezone | ||||
| 	log.SetFlags(LogFlags) | ||||
|  | ||||
| 	if version { | ||||
| 		showVersion() | ||||
| @@ -169,6 +169,9 @@ var ( | ||||
| 	conf    string | ||||
| 	version bool | ||||
| 	plugins bool | ||||
|  | ||||
| 	// LogFlags are initially set to 0 for no extra output | ||||
| 	LogFlags int | ||||
| ) | ||||
|  | ||||
| // Build information obtained with the help of -ldflags | ||||
|   | ||||
		Reference in New Issue
	
	Block a user