fix conflicts

This commit is contained in:
Xiang Li
2013-09-28 17:05:00 -07:00
6 changed files with 18 additions and 19 deletions

View File

@ -222,9 +222,8 @@ func VersionHttpHandler(w http.ResponseWriter, req *http.Request) error {
// Handler to return the basic stats of etcd
func StatsHttpHandler(w http.ResponseWriter, req *http.Request) error {
w.WriteHeader(http.StatusOK)
option := req.URL.Path[len("/v1/stats/"):]
w.WriteHeader(http.StatusOK)
switch option {
case "self":

View File

@ -1,4 +1,5 @@
package log
// Copyright 2013, David Fisher. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -42,7 +43,6 @@ func (logger *Logger) Logf(priority Priority, format string, v ...interface{}) {
logger.Log(priority, fmt.Sprintf(format, v...))
}
func (logger *Logger) Emergency(v ...interface{}) {
logger.Log(PriEmerg, v...)
}
@ -99,7 +99,6 @@ func (logger *Logger) Debugf(format string, v ...interface{}) {
logger.Log(PriDebug, fmt.Sprintf(format, v...))
}
func Emergency(v ...interface{}) {
defaultLogger.Log(PriEmerg, v...)
}
@ -185,7 +184,6 @@ func (logger *Logger)Printf (format string, v ...interface{}) {
logger.Logf(PriInfo, format, v...)
}
func Fatalln(v ...interface{}) {
defaultLogger.Log(PriCrit, v...)
os.Exit(1)

View File

@ -1,4 +1,5 @@
package log
// Copyright 2013, David Fisher. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,4 +1,5 @@
package log
// Copyright 2013, David Fisher. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -3,6 +3,7 @@ package journal
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
@ -12,7 +13,6 @@ import (
"strconv"
"strings"
"syscall"
"encoding/binary"
)
// Priority of a journal message