Skip to content

Commit

Permalink
Merge pull request #42 from lsst/tickets/DM-31384
Browse files Browse the repository at this point in the history
DM-31384: Add --log-label to bps command
  • Loading branch information
timj committed Aug 12, 2021
2 parents a0c8eb1 + a8a74ff commit 4eaa668
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
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

0 comments on commit 4eaa668

Please sign in to comment.