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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed debug argument in server.py #86

Merged
merged 1 commit into from Apr 8, 2015
Merged

Fixed debug argument in server.py #86

merged 1 commit into from Apr 8, 2015

Conversation

gentlecat
Copy link
Contributor

Before that it was kind of useless, same goes for DEBUG parameter in config file. Debug mode was always on. 馃槚

args = parser.parse_args()
application.run(debug=True, host=args.host, port=args.port)
application.run(debug=True if args.debug else None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are the arguments to debug really True and None?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

None is a default value there, which means it doesn't override whatever value we have set in the config file. See http://flask.pocoo.org/docs/0.10/api/#flask.Flask.run and http://flask.pocoo.org/docs/0.10/api/#flask.Flask.debug.

@alastair
Copy link
Collaborator

alastair commented Apr 8, 2015

馃殺 it

gentlecat added a commit that referenced this pull request Apr 8, 2015
Fixed `debug` argument in server.py
@gentlecat gentlecat merged commit b20a894 into master Apr 8, 2015
@gentlecat gentlecat deleted the debug branch April 8, 2015 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants