.
This commit is contained in:
@@ -6,8 +6,6 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"gemserve/config"
|
||||
|
||||
"github.com/lmittmann/tint"
|
||||
)
|
||||
|
||||
@@ -36,8 +34,8 @@ func FromContext(ctx context.Context) *slog.Logger {
|
||||
return slog.Default()
|
||||
}
|
||||
|
||||
func SetupLogging() {
|
||||
programLevel.Set(config.CONFIG.LogLevel)
|
||||
func SetupLogging(logLevel slog.Level) {
|
||||
programLevel.Set(logLevel)
|
||||
// With coloring (uses external package)
|
||||
opts := &tint.Options{
|
||||
AddSource: true,
|
||||
|
||||
Reference in New Issue
Block a user