Skip to content
Snippets Groups Projects
Commit 911e7cfb authored by anonymous's avatar anonymous
Browse files

add logging endpoints

parent a19671f5
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,12 @@ class OdshApiController(ApiController):
def action(self, logic_function, ver=None):
if logic_function == 'resource_qv4yAI2rgotamXGk98gJ':
return helpers.odsh_get_version_id()
if logic_function == 'log_qv4yAI2rgotamXGk98gJ':
if config.get('ckanext.odsh.enabletestendpoints', None) == 'True':
log.info('This is an info test log')
log.warning('This is an warning test log')
log.error('This is an error test log')
return 'ok'
try:
function = logic.get_action(logic_function)
side_effect_free = getattr(function, 'side_effect_free', False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment