summary refs log blame commit diff stats
path: root/init_test.go
blob: c13ec2183995a0b50ee784fe50ef6f000be11dc3 (plain) (tree)






















                                               
package main

import (
	"fmt"
	"log"
	"os"
)

var testport = fmt.Sprintf(":%v", confObj.port)

func initTestConf() {
	initConfig()
	tmpls = initTemplates()
	logToNull()
}

func logToNull() {
	hush, err := os.Open("/dev/null")
	if err != nil {
		log.Printf("%v\n", err)
	}
	log.SetOutput(hush)
}