Try and try again

This commit is contained in:
Micke Nordin 2024-01-16 17:09:03 +01:00
parent 31db4ba377
commit f6eaea5e12
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -223,7 +223,8 @@ hub:
@authenticated @authenticated
def get(self): def get(self):
app_log.debug("DEBUG: In auth get") app_log.error("DEBUG: In auth get")
print("DEBUG: In auth get")
user_model = self.get_current_user() user_model = self.get_current_user()
user_model = {'helloooooo': 'hej'} user_model = {'helloooooo': 'hej'}
self.set_header('content-type', 'application/json') self.set_header('content-type', 'application/json')
@ -232,13 +233,15 @@ hub:
class PingHandler(RequestHandler): class PingHandler(RequestHandler):
def get(self): def get(self):
app_log.debug("DEBUG: In get") app_log.error("DEBUG: In get")
print("DEBUG: In ping get")
self.set_header('content-type', 'application/json') self.set_header('content-type', 'application/json')
self.write(json.dumps({'ping': 1})) self.write(json.dumps({'ping': 1}))
def main(): def main():
app_log.debug("DEBUG: In main") app_log.error("DEBUG: In main")
print("DEBUG: In main")
tornado.options.parse_command_line() tornado.options.parse_command_line()
app = Application([ app = Application([
(os.environ['JUPYTERHUB_SERVICE_PREFIX'] + 'tokens', RefreshHandler), (os.environ['JUPYTERHUB_SERVICE_PREFIX'] + 'tokens', RefreshHandler),