1
0
mirror of https://github.com/rancher/os.git synced 2025-09-06 17:22:34 +00:00

add --debug logging option to installer, and a dummy set-disk-partitions

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-01-18 10:50:37 +10:00
parent ad5fad46ee
commit 8e5eba0ac5
4 changed files with 23 additions and 2 deletions

View File

@@ -46,6 +46,13 @@ func SetLevel(level Level) {
}
}
func GetLevel() Level {
if userHook != nil {
return Level(userHook.Level)
}
return Level(appLog.Level)
}
func Debugf(format string, args ...interface{}) {
appLog.Debugf(format, args...)
}