Skip to content

Commit 3c5241b

Browse files
committed
feat: start using loguru for logging
1 parent 18a0326 commit 3c5241b

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

poetry.lock

+36-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ requests = "^2.31.0"
2121
keyring = "^23.13.1"
2222
pydantic = "^1.10.9"
2323
stix2 = "^3.0.1"
24+
loguru = "^0.7.2"
2425

2526
[tool.poetry.group.dev.dependencies]
2627
pytest = ">=7.3.1"

src/koodousfinder/console.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import keyring
88
from stix2 import Bundle, File, Grouping, Indicator, Relationship
9-
9+
from loguru import logger
1010
from .client import Client
1111
from .response import Response
1212

@@ -58,7 +58,7 @@ def run():
5858
)
5959
search_used = args.app_name
6060
except Exception as ex: # pylint: disable=broad-exception-caught)
61-
print(ex)
61+
logger.error(ex)
6262
return
6363

6464
if args.stix:

0 commit comments

Comments
 (0)