File: log.go

package info (click to toggle)
goss 0.4.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,700 kB
  • sloc: sh: 984; makefile: 139
file content (16 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package system

import (
	"bytes"
	"log"
)

func logBytes(b []byte, prefix string) {
	if len(b) == 0 {
		return
	}
	lines := bytes.Split(b, []byte("\n"))
	for _, l := range lines {
		log.Printf("[DEBUG]%s %s", prefix, l)
	}
}