Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3d2387eb17a7
Choose a base ref
...
head repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ae08add2cc3c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 28, 2019

  1. support.data_logger: fix InfluxDB tag handling.

    Before this commit, only one tag value was submitted.
    whitequark committed Aug 28, 2019
    Copy the full SHA
    ae08add View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 software/glasgow/support/data_logger.py
3 changes: 2 additions & 1 deletion software/glasgow/support/data_logger.py
Original file line number Diff line number Diff line change
@@ -163,7 +163,7 @@ def tag(arg):
key, value = arg.split("=", 1)
return key, value
parser.add_argument(
"-t", "--tag", metavar="TAG=VALUE", dest="tags", type=tag, nargs="*",
"-t", "--tag", metavar="TAG=VALUE", dest="tags", type=tag, action="append",
help="attach TAG=VALUE to all data points")
parser.add_argument(
"-p", "--precision", metavar="PRECISION", choices=["ns", "us", "ms", "s", "m", "h"],
@@ -194,6 +194,7 @@ async def _report(self, fields, timestamp=None):
data_parts.append(str(self._timestamp(self.precision, timestamp)))
data = " ".join(data_parts)
try:
self.logger.debug("InfluxDB: write data=<%s>", data)
async with self.session.post(self.url, data=data) as response:
if response.status not in range(200, 300):
self.logger.error("InfluxDB: write status=%d body=%s",