mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 19:26:15 -06:00
ensure inconsistent inlining doesn't mess with log calling function name
This commit is contained in:
parent
9119897633
commit
f06affc590
17 changed files with 254 additions and 206 deletions
|
|
@ -24,7 +24,6 @@ import (
|
|||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"codeberg.org/gruf/go-logger/v2/level"
|
||||
"codeberg.org/gruf/go-storage/memory"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db/bundb"
|
||||
|
|
@ -41,7 +40,7 @@ func main() {
|
|||
ctx, cncl := signal.NotifyContext(ctx, syscall.SIGTERM, syscall.SIGINT)
|
||||
defer cncl()
|
||||
|
||||
log.SetLevel(level.INFO)
|
||||
log.SetLevel(log.INFO)
|
||||
|
||||
if len(os.Args) != 3 {
|
||||
log.Panic(ctx, "Usage: go run ./cmd/process-emoji <input-file> <output-static>")
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import (
|
|||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"codeberg.org/gruf/go-logger/v2/level"
|
||||
"codeberg.org/gruf/go-storage/memory"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db/bundb"
|
||||
|
|
@ -40,7 +39,7 @@ func main() {
|
|||
ctx, cncl := signal.NotifyContext(ctx, syscall.SIGTERM, syscall.SIGINT)
|
||||
defer cncl()
|
||||
|
||||
log.SetLevel(level.INFO)
|
||||
log.SetLevel(log.INFO)
|
||||
|
||||
if len(os.Args) != 4 {
|
||||
log.Panic(ctx, "Usage: go run ./cmd/process-media <input-file> <output-processed> <output-thumbnail>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue