mirror of
https://github.com/go-gitea/gitea
synced 2025-01-02 13:46:02 +01:00
Use log package
Signed-off-by: justusbunsi <61625851+justusbunsi@users.noreply.github.com>
This commit is contained in:
parent
2901259a67
commit
322ae43632
@ -4,6 +4,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
golog "log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"code.gitea.io/gitea/modules/log"
|
"code.gitea.io/gitea/modules/log"
|
||||||
@ -92,7 +93,9 @@ func runIniToShell(c *cli.Context) error {
|
|||||||
log.Fatal("Section '%s' does not have key '%s'", sName, kName)
|
log.Fatal("Section '%s' does not have key '%s'", sName, kName)
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Stdout.Write([]byte(section.Key(kName).Value()))
|
golog.SetOutput(os.Stdout)
|
||||||
|
golog.SetFlags(golog.Flags() &^ (golog.Ldate | golog.Ltime))
|
||||||
|
golog.Println(section.Key(kName).Value())
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user