Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 622f6a2638 | |||
| e3162b6164 |
@@ -148,9 +148,6 @@ func Setup(opts *Options) error {
|
|||||||
|
|
||||||
log.p = priority
|
log.p = priority
|
||||||
log.writeConsole = opts.WriteConsole
|
log.writeConsole = opts.WriteConsole
|
||||||
if opts.WriteConsole {
|
|
||||||
fmt.Println("will write to console")
|
|
||||||
}
|
|
||||||
|
|
||||||
if opts.WriteSyslog {
|
if opts.WriteSyslog {
|
||||||
var err error
|
var err error
|
||||||
|
|||||||
@@ -55,3 +55,8 @@ func (b *Buffer) Close() error {
|
|||||||
func (b *Buffer) Len() int {
|
func (b *Buffer) Len() int {
|
||||||
return len(b.data[b.pos:])
|
return len(b.data[b.pos:])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bytes returns the underlying bytes from the current position.
|
||||||
|
func (b *Buffer) Bytes() []byte {
|
||||||
|
return b.data[b.pos:]
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user