Skip to content

Commit

Permalink
Merge pull request #6 from DenisaCG/fixLogger
Browse files Browse the repository at this point in the history
Fix logger initialization in listing available drives API handler
  • Loading branch information
DenisaCG authored Nov 20, 2023
2 parents 878c178 + 4d3e6d9 commit 9d40101
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jupyter_drives/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ class ListJupyterDrives(JupyterDrivesAPIHandler):
"""
Returns list of available drives.
"""
def initialize(self, logger: logging.Logger, manager: JupyterDrivesManager):
return super().initialize(logger, manager)

# Later on, filters can be added for the listing
@tornado.web.authenticated
async def get(self):
drives, error = await self._manager.list_drives()
self.finish(json.dumps(drives))
get_logger().debug(error)
self._jp_log.debug(error)

default_handlers = [
("drives", ListJupyterDrives)
Expand Down

0 comments on commit 9d40101

Please sign in to comment.