Compare commits

..

2 Commits

Author SHA1 Message Date
622f6a2638 seekbuf: add Bytes method. 2023-08-27 20:56:47 -07:00
e3162b6164 log: remove extraneous print 2023-05-26 22:37:56 +00:00
2 changed files with 5 additions and 3 deletions

View File

@@ -148,9 +148,6 @@ func Setup(opts *Options) error {
log.p = priority
log.writeConsole = opts.WriteConsole
if opts.WriteConsole {
fmt.Println("will write to console")
}
if opts.WriteSyslog {
var err error

View File

@@ -55,3 +55,8 @@ func (b *Buffer) Close() error {
func (b *Buffer) Len() int {
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:]
}