diff --git a/endpoints/api/logs.py b/endpoints/api/logs.py index 899897f19..1760a2e9b 100644 --- a/endpoints/api/logs.py +++ b/endpoints/api/logs.py @@ -259,6 +259,7 @@ def _queue_logs_export(start_time, end_time, options, namespace_name, repository @resource('/v1/repository//exportlogs') +@show_if(features.LOG_EXPORT) @path_param('repository', 'The full path of the repository. e.g. namespace/name') class ExportRepositoryLogs(RepositoryParamResource): """ Resource for exporting the logs for the specific repository. """ @@ -287,6 +288,7 @@ class ExportRepositoryLogs(RepositoryParamResource): @resource('/v1/user/exportlogs') +@show_if(features.LOG_EXPORT) class ExportUserLogs(ApiResource): """ Resource for exporting the logs for the current user repository. """ schemas = {