Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelWARN,LM.SeverityLow,LM.ImpactLow,LM.MessageNameCONFIGURATION,`Was not able to read the public server's read timeout value. Use the default of 10 seconds instead.`,errTimeout.Error())
serverPublic.ReadTimeout=10*time.Second
}else{
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelINFO,LM.MessageNameCONFIGURATION,fmt.Sprintf("The public web server's read timeout was set to %d seconds.",readTimeoutSeconds))
Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelWARN,LM.SeverityLow,LM.ImpactLow,LM.MessageNameCONFIGURATION,`Was not able to read the public server's write timeout value. Use the default of 10 seconds instead.`,errTimeout.Error())
serverPublic.WriteTimeout=10*time.Second
}else{
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelINFO,LM.MessageNameCONFIGURATION,fmt.Sprintf("The public web server's write timeout was set to %d seconds.",writeTimeoutSeconds))
Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelWARN,LM.SeverityLow,LM.ImpactLow,LM.MessageNameCONFIGURATION,`Was not able to read the public server's max. header size. Use the default of 1048576 bytes instead.`,errHeaderBytes.Error())
serverPublic.MaxHeaderBytes=1048576
}else{
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelINFO,LM.MessageNameCONFIGURATION,fmt.Sprintf("The public web server's max. header size was set to %d bytes.",maxHeaderBytes))
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.MessageNameCONFIGURATION,`Was not able to read the working directory. Thus, cannot store the TLS certificates!`,dirError.Error())
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.MessageNameCONFIGURATION,`Was not able to write the TLS certificate to the working directory.`,writeError.Error())
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.MessageNameCONFIGURATION,`Was not able to write the TLS private key to the working directory.`,writeError.Error())
Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelWARN,LM.SeverityLow,LM.ImpactLow,LM.MessageNameCONFIGURATION,`Was not able to read the admin server's read timeout value. Use the default of 10 seconds instead.`,errTimeout.Error())
serverAdmin.ReadTimeout=10*time.Second
}else{
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelINFO,LM.MessageNameCONFIGURATION,fmt.Sprintf("The admin web server's read timeout was set to %d seconds.",readTimeoutSeconds))
Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelWARN,LM.SeverityLow,LM.ImpactLow,LM.MessageNameCONFIGURATION,`Was not able to read the admin server's write timeout value. Use the default of 10 seconds instead.`,errTimeout.Error())
serverAdmin.WriteTimeout=10*time.Second
}else{
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelINFO,LM.MessageNameCONFIGURATION,fmt.Sprintf("The admin web server's write timeout was set to %d seconds.",writeTimeoutSeconds))
Log.LogFull(senderName,LM.CategorySYSTEM,LM.LevelWARN,LM.SeverityLow,LM.ImpactLow,LM.MessageNameCONFIGURATION,`Was not able to read the admin server's max. header size. Use the default of 1048576 bytes instead.`,errHeaderBytes.Error())
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelINFO,LM.MessageNameCONFIGURATION,fmt.Sprintf("The admin web server's max. header size was set to %d bytes.",maxHeaderBytes))
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.MessageNameCONFIGURATION,`Was not able to read the working directory. Thus, cannot store the TLS certificates!`,dirError.Error())
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.MessageNameCONFIGURATION,`Was not able to write the TLS certificate to the working directory.`,writeError.Error())
Log.LogShort(senderName,LM.CategorySYSTEM,LM.LevelERROR,LM.MessageNameCONFIGURATION,`Was not able to write the TLS private key to the working directory.`,writeError.Error())