clean log

This commit is contained in:
Chris Lu
2012-08-24 01:15:27 -07:00
parent 869a6711bc
commit 09ed882e5f
7 changed files with 40 additions and 14 deletions

View File

@@ -5,7 +5,6 @@ import (
"flag"
"fmt"
"io"
"log"
"net/http"
"os"
"strings"
@@ -42,7 +41,6 @@ func setExitStatus(n int) {
func main() {
flag.Usage = usage
flag.Parse()
log.SetFlags(0)
args := flag.Args()
if len(args) < 1 {
@@ -172,8 +170,6 @@ func exit() {
os.Exit(exitStatus)
}
var logf = log.Printf
func exitIfErrors() {
if exitStatus != 0 {
exit()