Skip to content

Commit 77e6dfb

Browse files
committed
improve cli docs for loging
1 parent f6d2c84 commit 77e6dfb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dbt2looker/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ def run():
7878
argparser.add_argument(
7979
'--log-level',
8080
help='Set level of logs. Default is INFO',
81-
choices=[logging.DEBUG, logging.INFO, logging.WARN, logging.ERROR],
82-
type=lambda x: getattr(logging, x),
83-
default=logging.INFO,
81+
choices=['DEBUG', 'INFO', 'WARN', 'ERROR'],
82+
type=str,
83+
default='INFO',
8484
)
8585
args = argparser.parse_args()
8686
logging.basicConfig(
87-
level=args.log_level,
87+
level=getattr(logging, args.log_level),
8888
format='%(asctime)s %(levelname)-6s %(message)s',
8989
datefmt='%H:%M:%S',
9090
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dbt2looker"
3-
version = "0.6.2"
3+
version = "0.6.3"
44
description = "Generate lookml view files from dbt models"
55
authors = ["oliverlaslett <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)