mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Update CCLogger
This commit is contained in:
parent
5600cf1f5f
commit
0a383a3789
@ -2,12 +2,11 @@ package cclogger
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
|
||||||
"os"
|
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
globalDebug = false
|
globalDebug = false
|
||||||
stdout = os.Stdout
|
stdout = os.Stdout
|
||||||
@ -89,7 +88,6 @@ func SetDebug() {
|
|||||||
initLogger()
|
initLogger()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func SetOutput(filename string) {
|
func SetOutput(filename string) {
|
||||||
if filename == "stderr" {
|
if filename == "stderr" {
|
||||||
if stderr != os.Stderr && stderr != os.Stdout {
|
if stderr != os.Stderr && stderr != os.Stdout {
|
||||||
|
Loading…
Reference in New Issue
Block a user