1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

Use log package

Signed-off-by: justusbunsi <61625851+justusbunsi@users.noreply.github.com>
This commit is contained in:
JustusBunsi 2024-11-28 21:38:38 +01:00
parent 2901259a67
commit 322ae43632
No known key found for this signature in database
GPG Key ID: CD7F8FCE851C5902

View File

@ -4,6 +4,7 @@
package main
import (
golog "log"
"os"
"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)
}
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
}