Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-31384: Add --log-label to bps command #42

Merged
merged 3 commits into from
Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Checklist

- [ ] ran Jenkins
- [ ] added a release note for user-visible changes to `doc/changes`
1 change: 1 addition & 0 deletions doc/changes/DM-31884.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add ``--log-label`` option to ``bps`` command to allow extra information to be injected into the log record.
11 changes: 9 additions & 2 deletions python/lsst/ctrl/bps/cli/bps.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
import click

from lsst.daf.butler.cli.butler import LoaderCLI
from lsst.daf.butler.cli.opt import log_level_option, long_log_option, log_file_option, log_tty_option
from lsst.daf.butler.cli.opt import (
log_level_option,
long_log_option,
log_file_option,
log_tty_option,
log_label_option,
)
from lsst.daf.butler.cli.utils import unwrap


Expand All @@ -48,7 +54,8 @@ class BpsCli(LoaderCLI):
@long_log_option()
@log_file_option()
@log_tty_option()
def cli(log_level, long_log, log_file, log_tty):
@log_label_option()
def cli(log_level, long_log, log_file, log_tty, log_label):
pass


Expand Down