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

Commit

Permalink
Merge pull request #780 from foglamp/FOGL-1316
Browse files Browse the repository at this point in the history
FOGL-1316 - Foglamp stop error on Raspbian resolved
  • Loading branch information
amarendra-dianomic authored May 10, 2018
2 parents 5dd046d + b16ed76 commit e2f889b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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 Expand Up @@ -104,8 +104,6 @@ def do_shutdown(request):
try:
loop = request.loop
asyncio.ensure_future(server.Server.shutdown(request), loop=loop)
loop.run_until_complete(loop.shutdown_asyncgens())
loop.close()
except RuntimeError as e:
_logger.exception("Error while stopping FogLAMP server: {}".format(str(e)))
raise

0 comments on commit e2f889b

Please sign in to comment.