File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
investing_algorithm_framework/management Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11import os
22import sys
33from colorama import Fore
4+ import logging
45
56from investing_algorithm_framework .management import BaseCommand
67from investing_algorithm_framework .core .resolvers import ClassResolver
78from investing_algorithm_framework .management .utils import get_commands
89from investing_algorithm_framework .management .commands .help import HelpCommand
910from investing_algorithm_framework .core .exceptions import OperationalException
11+ from investing_algorithm_framework .configuration .config_constants \
12+ import FRAMEWORK_NAME
13+
14+ logger = logging .getLogger (FRAMEWORK_NAME )
1015
1116
1217class ManagementUtility :
@@ -63,6 +68,7 @@ def execute(self) -> None:
6368 response = command .run_from_argv (self .argv )
6469 response = format_success_message (response )
6570 except Exception as e :
71+ logger .exception (e )
6672 response = format_error_message (str (e ))
6773
6874 sys .stdout .write (response )
You can’t perform that action at this time.
0 commit comments