-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdk-core: ensure early logs are available (#2846)
When vdk command is started logs do not really show up until click command start getting executed. All logs before that (from plugin hooks) seemed ignored. I couldn't figure out for sure while click_log does that. But this changes it so that early logs can be seen on console . The log level of the early logs is controlled by LOG_LEVEL_VDK option (which control the log level of VDK logs , since early logs are really vdk logs it make sense) By default LOG_LEVEL_VDK is WARNING, so if more verbose logs are set it should be changed to INFO. Testing Done: ``` export LOG_LEVEL_VDK=INFO vdk run example ``` logs look like https://gist.github.com/antoniivanov/bdd935927c1149b74944c58e96b50ee3 ``` unset LOG_LEVEL_VDK vdk run example ``` logs look like https://gist.github.com/antoniivanov/afce585f8cd03ac4e09e9010dcdd2b9a Tested also with vdk -v DEBUG ... to see debug logs show up correctly (with bot set and unset LOG_LEVEL_VDK) Tested other commands vdk deploy, login, info that logs look like before (aka no unnecessary logs)
- Loading branch information
1 parent
21da2df
commit 71138a3
Showing
3 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters