1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Fixed some bugs

This commit is contained in:
Retspen 2015-05-13 09:42:20 +03:00
parent fafce78e68
commit 871e04fb03
4 changed files with 32 additions and 15 deletions

View file

@ -66,14 +66,15 @@ parser.add_option("-c",
(options, args) = parser.parse_args()
FORMAT="%(asctime)s - %(name)s - %(levelname)s : %(message)s"
FORMAT = "%(asctime)s - %(name)s - %(levelname)s : %(message)s"
if options.debug:
logging.basicConfig(level=logging.DEBUG,format=FORMAT)
options.verbose=True
logging.basicConfig(level=logging.DEBUG, format=FORMAT)
options.verbose = True
elif options.verbose:
logging.basicConfig(level=logging.INFO,format=FORMAT)
logging.basicConfig(level=logging.INFO, format=FORMAT)
else:
logging.basicConfig(level=logging.WARNING,format=FORMAT)
logging.basicConfig(level=logging.WARNING, format=FORMAT)
try:
from websockify import WebSocketProxy