Skip to content

Commit ef0012f

Browse files
authored
Configure logger for stdout (#8)
1 parent 12a35cd commit ef0012f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

entrypoint.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@
1818
notes = sys.argv[6]
1919
debug = sys.argv[7].lower() in ["true", "1"]
2020

21+
logger = logging.getLogger()
22+
handler = logging.StreamHandler(sys.stdout)
23+
logger.addHandler(handler)
24+
2125
if debug:
22-
logging.getLogger().setLevel(logging.DEBUG)
26+
logger.setLevel(logging.DEBUG)
2327
logging.getLogger("urllib3").setLevel(logging.WARNING)
2428

29+
2530
options = Options(
2631
product_id=product_id,
2732
client_id=client_id,

0 commit comments

Comments
 (0)