Title: Unable to clean up log entries created during system testing · Issue #1657 · googleapis/google-cloud-python · GitHub
Open Graph Title: Unable to clean up log entries created during system testing · Issue #1657 · googleapis/google-cloud-python
X Title: Unable to clean up log entries created during system testing · Issue #1657 · googleapis/google-cloud-python
Description: The projects.logs.delete API is returning 404s for logs which plainly exist. >>> from gcloud.logging import Client >>> client = Client() >>> entries, token = client.list_entries(filter_='logName:system-tests') >>> len(entries) 6 >>> logg...
Open Graph Description: The projects.logs.delete API is returning 404s for logs which plainly exist. >>> from gcloud.logging import Client >>> client = Client() >>> entries, token = client.list_entries(filter_='logName:sy...
X Description: The projects.logs.delete API is returning 404s for logs which plainly exist. >>> from gcloud.logging import Client >>> client = Client() >>> entries, token = client.list_...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1657
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to clean up log entries created during system testing","articleBody":"The `projects.logs.delete` API is returning 404s for logs which plainly exist.\n\n``` python\n\u003e\u003e\u003e from gcloud.logging import Client\n\u003e\u003e\u003e client = Client()\n\u003e\u003e\u003e entries, token = client.list_entries(filter_='logName:system-tests')\n\u003e\u003e\u003e len(entries)\n6\n\u003e\u003e\u003e loggers = set([entry.logger for entry in entries])\n\u003e\u003e\u003e len(loggers)\n3\n\u003e\u003e\u003e [logger.name for logger in loggers]\n[u'system-tests-logger-1458748033415', u'system-tests-logger-1458757743657', u'system-tests-logger-1458843354552']\n\u003e\u003e\u003e for logger in loggers:\n... logger.delete()\n... \nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 2, in \u003cmodule\u003e\n File \"gcloud/logging/logger.py\", line 130, in delete\n method='DELETE', path='/%s' % self.full_name)\n File \"gcloud/connection.py\", line 343, in api_request\n error_info=method + ' ' + url)\ngcloud.exceptions.NotFound: 404 Requested entity was not found. (DELETE https://logging.googleapis.com/v2beta1/projects/citric-celerity-697/logs/system-tests-logger-1458748033415)\n```\n\nI can't delete those logs via the [\"Try It!\" form for `projects.logs.delete`](https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.logs/delete), either.\n\n@jgeewax who is the back-end API contact person for logging?\n","author":{"url":"https://github.com/tseaver","@type":"Person","name":"tseaver"},"datePublished":"2016-03-24T18:29:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1657/google-cloud-python/issues/1657"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1dc4bc11-ee3d-998c-a9ef-c302a012714a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7C8:15BB0E:3CAA55:527DC0:6A4D3996 |
| html-safe-nonce | 95e6fa62795b243986d663bd92ab245e6c5ab194f18de1ca06a7f9f0f89bf31f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0M4OjE1QkIwRTozQ0FBNTU6NTI3REMwOjZBNEQzOTk2IiwidmlzaXRvcl9pZCI6IjE1ODU1NDc2MDkyOTE3MDA2MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e1b31658bded0da2ded3d0368562b9e201dbd16991c1c2ff9d4f9d8a0b01eaa2 |
| hovercard-subject-tag | issue:143324383 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/1657/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eea44e132cd7e09ab16dce2db33856323a15b0b0f8fe4c52af14c9c0cd58ecb3/googleapis/google-cloud-python/issues/1657 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eea44e132cd7e09ab16dce2db33856323a15b0b0f8fe4c52af14c9c0cd58ecb3/googleapis/google-cloud-python/issues/1657 |
| og:image:alt | The projects.logs.delete API is returning 404s for logs which plainly exist. >>> from gcloud.logging import Client >>> client = Client() >>> entries, token = client.list_entries(filter_='logName:sy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tseaver |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width