summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/app_config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go
index 49ff32b04..27e3b1400 100644
--- a/pkg/config/app_config.go
+++ b/pkg/config/app_config.go
@@ -301,5 +301,9 @@ func getDefaultAppState() *AppState {
}
func LogPath() (string, error) {
+ if os.Getenv("LAZYGIT_LOG_PATH") != "" {
+ return os.Getenv("LAZYGIT_LOG_PATH"), nil
+ }
+
return configFilePath("development.log")
}