Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #35 from lincbrain/ak-word
Browse files Browse the repository at this point in the history
Update messaging and root directory for lincbrain logs
  • Loading branch information
aaronkanzer authored Feb 14, 2024
2 parents 94d0470 + 99c5e61 commit 85ca628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lincbrain/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main(ctx, log_level, pdb=False):
h.addFilter(lambda r: not getattr(r, "file_only", False))
set_logger_level(h, log_level)

logdir = platformdirs.user_log_dir("dandi-cli", "dandi")
logdir = platformdirs.user_log_dir("lincbrain-cli", "lincbrain")
logfile = os.path.join(
logdir, f"{datetime.utcnow():%Y%m%d%H%M%SZ}-{os.getpid()}.log"
)
Expand All @@ -116,7 +116,7 @@ def main(ctx, log_level, pdb=False):
root.addHandler(handler)

lgr.info(
"dandi v%s, hdmf v%s, pynwb v%s, h5py v%s",
"lincbrain v%s, hdmf v%s, pynwb v%s, h5py v%s",
__version__,
get_module_version("hdmf"),
get_module_version("pynwb"),
Expand Down
4 changes: 2 additions & 2 deletions lincbrain/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,14 @@ def upload_agg(*ignored: Any) -> str:
try:
import etelemetry

latest_version = etelemetry.get_project("dandi/dandi-cli")["version"]
latest_version = etelemetry.get_project("lincbrain/linc-cli")["version"]
except Exception:
pass
else:
if Version(latest_version) > Version(__version__):
lgr.warning(
"Upload failed, and you are not using the latest"
" version of dandi. We suggest upgrading dandi to v%s"
" version of lincbrain-cli. We suggest upgrading lincbrain-cli to v%s"
" and trying again.",
latest_version,
)
Expand Down

0 comments on commit 85ca628

Please sign in to comment.