about summary refs log tree commit diff stats
path: root/html/filesystem.mu.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/filesystem.mu.html')
0 files changed, 0 insertions, 0 deletions
ision' href='/gbmor/getwtxt/blame/init_test.go?id=6f9383517d8dbee557d2b52113e20e08207b533e'>^
a6c8162 ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27







             
                                               
                   

                     





                                       








                                         
package main

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

var testport = fmt.Sprintf(":%v", confObj.Port)
var hasInit = false

func initTestConf() {
	if !hasInit {
		initConfig()
		tmpls = initTemplates()
		logToNull()
		hasInit = true
	}
}

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