|
5 | 5 | # Copyright 2021, Joe Block <[email protected]>
|
6 | 6 | #
|
7 | 7 | # <xbar.title>Lima Control</xbar.title>
|
8 |
| -# <xbar.version>v1.0</xbar.version> |
| 8 | +# <xbar.version>v1.3.2</xbar.version> |
9 | 9 | # <xbar.author>Joe Block</xbar.author>
|
10 | 10 | # <xbar.author.github>unixorn</xbar.author.github>
|
11 | 11 | # <xbar.desc>Control Lima VM</xbar.desc>
|
@@ -34,7 +34,7 @@ RUNNING_VM_COLOR = "#29cc00"
|
34 | 34 | # Stopped VM color (default red)
|
35 | 35 | STOPPED_VM_COLOR = "#ff0033"
|
36 | 36 |
|
37 |
| -VERSION = "1.3.1" |
| 37 | +VERSION = "1.3.2" |
38 | 38 |
|
39 | 39 |
|
40 | 40 | def logSetup(level: str = "INFO"):
|
@@ -72,7 +72,7 @@ def parseCLI():
|
72 | 72 | type=str.upper,
|
73 | 73 | help="set log level",
|
74 | 74 | choices=["DEBUG", "INFO", "ERROR", "WARNING", "CRITICAL"],
|
75 |
| - default="INFO", |
| 75 | + default="CRITICAL", |
76 | 76 | )
|
77 | 77 | parser.add_argument(
|
78 | 78 | "--vm", "--virtual-machine", type=str, help="Which vm to use", default="default"
|
@@ -325,7 +325,7 @@ def imageOps(action: str, image: str, vm: str = "default"):
|
325 | 325 | :param str image: What image to do the action on
|
326 | 326 | :param str vm: Which VM is the image in?
|
327 | 327 | """
|
328 |
| - logging.critical("imageOps") |
| 328 | + logging.info("imageOps") |
329 | 329 | logging.info("action: %s" % action)
|
330 | 330 | logging.info("image: %s" % image)
|
331 | 331 | logging.info("vm: %s" % vm)
|
@@ -371,7 +371,7 @@ def vmOps(action: str, vm: str = "default"):
|
371 | 371 | :param str action: What action to run - should be start or stop
|
372 | 372 | :param str vm: Name of VM to act on
|
373 | 373 | """
|
374 |
| - logging.critical("vmOps") |
| 374 | + logging.info("vmOps") |
375 | 375 | logging.debug("action: %s" % action)
|
376 | 376 | logging.debug("vm: %s" % vm)
|
377 | 377 |
|
|
0 commit comments