-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
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
>>> loggers = set([entry.logger for entry in entries])
>>> len(loggers)
3
>>> [logger.name for logger in loggers]
[u'system-tests-logger-1458748033415', u'system-tests-logger-1458757743657', u'system-tests-logger-1458843354552']
>>> for logger in loggers:
... logger.delete()
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "gcloud/logging/logger.py", line 130, in delete
method='DELETE', path='/%s' % self.full_name)
File "gcloud/connection.py", line 343, in api_request
error_info=method + ' ' + url)
gcloud.exceptions.NotFound: 404 Requested entity was not found. (DELETE https://logging.googleapis.com/v2beta1/projects/citric-celerity-697/logs/system-tests-logger-1458748033415)I can't delete those logs via the "Try It!" form for projects.logs.delete, either.
@jgeewax who is the back-end API contact person for logging?