Skip to content

Commit

Permalink
RF+ENH: also report requests and urllib3 versions, do not prefix with v
Browse files Browse the repository at this point in the history
no v prefix since is not providing any information on top; sorting for deterministic order
  • Loading branch information
yarikoptic committed Sep 27, 2024
1 parent 945acaa commit a4997d4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions dandi/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,19 @@ def main(ctx, log_level, pdb=False):
lambda r: r.name != "pyout" and not r.name.startswith("pyout.")
)
root.addHandler(handler)
exts = (
"dandischema",
"h5py",
"hdmf",
"pynwb",
"requests",
"urllib3",
)

lgr.info(
"dandi v%s, dandischema v%s, hdmf v%s, pynwb v%s, h5py v%s",
"dandi %s, "
+ ", ".join("%s %s" % (e, get_module_version(e)) for e in sorted(exts)),
__version__,
get_module_version("dandischema"),
get_module_version("h5py"),
get_module_version("hdmf"),
get_module_version("pynwb"),
get_module_version("requests"),
get_module_version("urllib3"),
extra={"file_only": True},
)
lgr.info("sys.argv = %r", sys.argv, extra={"file_only": True})
Expand Down

0 comments on commit a4997d4

Please sign in to comment.