mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user