mirror of https://github.com/Xhofe/alist
🚧 echo password
parent
7804cf9d5c
commit
86cda58b22
2
alist.go
2
alist.go
|
@ -22,7 +22,7 @@ func Init() bool {
|
|||
log.Errorf(err.Error())
|
||||
return false
|
||||
}
|
||||
log.Infof("current password: %s", pass.Value)
|
||||
fmt.Printf("your password: %s\n", pass.Value)
|
||||
return false
|
||||
}
|
||||
server.InitIndex()
|
||||
|
|
|
@ -12,6 +12,9 @@ func InitLog() {
|
|||
log.SetLevel(log.DebugLevel)
|
||||
log.SetReportCaller(true)
|
||||
}
|
||||
if conf.Password {
|
||||
log.SetLevel(log.WarnLevel)
|
||||
}
|
||||
log.SetFormatter(&log.TextFormatter{
|
||||
//DisableColors: true,
|
||||
ForceColors: true,
|
||||
|
|
Loading…
Reference in New Issue