Merge pull request #47 from yunzheng/version-info
Output log4j-finder and Python version to debug and info logging
This commit is contained in:
@@ -301,12 +301,13 @@ def main():
|
|||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
format="%(asctime)s %(levelname)s %(message)s",
|
format="%(asctime)s %(levelname)s %(message)s",
|
||||||
)
|
)
|
||||||
|
python_version = platform.python_version()
|
||||||
if args.verbose == 1:
|
if args.verbose == 1:
|
||||||
log.setLevel(logging.INFO)
|
log.setLevel(logging.INFO)
|
||||||
log.info("info logging enabled")
|
log.info(f"info logging enabled - log4j-finder {__version__} - Python {python_version}")
|
||||||
elif args.verbose >= 2:
|
elif args.verbose >= 2:
|
||||||
log.setLevel(logging.DEBUG)
|
log.setLevel(logging.DEBUG)
|
||||||
log.debug("debug logging enabled")
|
log.debug(f"debug logging enabled - log4j-finder {__version__} - Python {python_version}")
|
||||||
|
|
||||||
if args.no_color:
|
if args.no_color:
|
||||||
global NO_COLOR
|
global NO_COLOR
|
||||||
|
|||||||
Reference in New Issue
Block a user