Minor refactoring

This commit is contained in:
Miroslav Stampar 2016-01-07 21:46:20 +01:00
parent 9b70728441
commit c5d3198101

View File

@ -19,10 +19,11 @@ from lib.core.settings import RESTAPI_DEFAULT_PORT
from lib.utils.api import client from lib.utils.api import client
from lib.utils.api import server from lib.utils.api import server
if __name__ == "__main__": def main():
""" """
REST-JSON API main function REST-JSON API main function
""" """
# Set default logging level to debug # Set default logging level to debug
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
@ -45,3 +46,6 @@ if __name__ == "__main__":
client(args.host, args.port) client(args.host, args.port)
else: else:
apiparser.print_help() apiparser.print_help()
if __name__ == "__main__":
main()