[Feature] CLI logging (#6487)

* remove old logging references

* cli as logging subapp option

* changing the subapp to the cli on init
This commit is contained in:
Henrique Joaquim
2024-06-07 11:57:23 +01:00
committed by GitHub
parent d7a9e666b9
commit aa7bccc4ec
4 changed files with 44 additions and 14 deletions

View File

@@ -2,6 +2,8 @@
import sys
from openbb_cli.utils.utils import change_logging_sub_app, reset_logging_sub_app
def main():
"""Use the main entry point for the OpenBB Platform CLI."""
@@ -20,4 +22,10 @@ def main():
if __name__ == "__main__":
main()
initial_logging_sub_app = change_logging_sub_app()
try:
main()
except Exception as e:
pass
finally:
reset_logging_sub_app(initial_logging_sub_app)