mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Most migrations happen at startup when loading the global config file, at a time where the GUI hasn't been initialized yet. We can safely print to the console at that point. However, it is also possible that repo-local config files need to be migrated, and this happens when the GUI has already started, at which point we had better not print anything to stdout; this totally messes up the UI. In this commit we simply suppress the logging when the GUI is running already. This is probably good enough, because the logging is mostly useful in the case that writing back the migrated config file fails, so that users understand better why lazygit doesn't start up; and this is very unlikely to happen for repo-local config files, because why would users make them read-only. |
||
|---|---|---|
| .. | ||
| app | ||
| cheatsheet | ||
| commands | ||
| common | ||
| config | ||
| constants | ||
| env | ||
| fakes | ||
| gui | ||
| i18n | ||
| integration | ||
| jsonschema | ||
| logs | ||
| snake | ||
| tasks | ||
| theme | ||
| updates | ||
| utils | ||