summaryrefslogtreecommitdiffhomepage
path: root/internal/config
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-28 12:35:20 -0500
committeradamdottv <[email protected]>2025-05-28 15:36:35 -0500
commit15d21bf04acd6af75df97918f66df866c239b248 (patch)
tree16ac93b0c686faaf3b21700771b082b6bc26f098 /internal/config
parent5e738ce7d3b66b88a407a1bcc53a5169d0f4a904 (diff)
downloadopencode-15d21bf04acd6af75df97918f66df866c239b248.tar.gz
opencode-15d21bf04acd6af75df97918f66df866c239b248.zip
wip: refactoring tui
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 432ba6e08..c8aea435c 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -125,7 +125,7 @@ var cfg *Config
// Load initializes the configuration from environment variables and config files.
// If debug is true, debug mode is enabled and log level is set to debug.
// It returns an error if configuration loading fails.
-func Load(workingDir string, debug bool, lvl *slog.LevelVar) (*Config, error) {
+func Load(workingDir string, debug bool) (*Config, error) {
if cfg != nil {
return cfg, nil
}
@@ -161,7 +161,6 @@ func Load(workingDir string, debug bool, lvl *slog.LevelVar) (*Config, error) {
if cfg.Debug {
defaultLevel = slog.LevelDebug
}
- lvl.Set(defaultLevel)
slog.SetLogLoggerLevel(defaultLevel)
// Validate configuration