Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toggle the logging from command line #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pearlfranz20
Copy link

toggle logging with debugging flags

toggle logging with debugging flags
@eharpste eharpste self-requested a review July 14, 2021 18:00
@@ -284,6 +287,9 @@ def parse_args(argv):
help="Specifies the directory of the outer loop repo.")
parser.add_argument('--outer-loop-url', default=None, dest="outer_loop_url", metavar="<outer_loop_url>",
help="Specifies the URL of a running outer loop server.")
parser.add_argument('--debug', action='store_true', help="Makes logging messages visible in the console.")
parser.add_argument('--debug-agent', action='store_true', dest="debug_agent", help="Makes logging messages for the agent visible in the console.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think its a good idea to constantly add new flags for different debuggers like this. There are many more instances of the logging module used throughout AL_Core that would not respond to this style of flagging. A more general solution where you provide some kind of delimited list that switches on multiple loggers at once seems like the ideal in this case.

@@ -284,6 +287,9 @@ def parse_args(argv):
help="Specifies the directory of the outer loop repo.")
parser.add_argument('--outer-loop-url', default=None, dest="outer_loop_url", metavar="<outer_loop_url>",
help="Specifies the URL of a running outer loop server.")
parser.add_argument('--debug', action='store_true', help="Makes logging messages visible in the console.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is the behavior of this flag different form other debugging flags? It seems like this one corresponds to debugging in the host_server specifically. Can it be given a more descriptive name? Alternatively, see my other comment that it could maybe be part of a delimited list of loggers to activate.

Copy link
Member

@eharpste eharpste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to my comment on AL_Core, I think we want to design a more comprehensive solution to this logging problem. I will start an issue on the other repo for this.

@eharpste
Copy link
Member

See AL_Core/#79 for more discussion on this idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants