Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
amarendra-dianomic committed May 10, 2018
1 parent 464a757 commit b16ed76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/foglamp/services/core/api/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def ping(request):
category_item = await cfg_mgr.get_category_item('rest_api', 'allowPing')
allow_ping = True if category_item['value'].lower() == 'true' else False
if request.is_auth_optional is False and allow_ping is False:
_logger.exception("Permission denied for Ping when Auth is mandatory.")
_logger.warning("Permission denied for Ping when Auth is mandatory.")
raise web.HTTPForbidden

def get_stats(k):
Expand Down

0 comments on commit b16ed76

Please sign in to comment.