Skip to content

Commit

Permalink
New diag route
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 20, 2019
1 parent 4c3be77 commit 3e20502
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/netius/base/diag.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

import os
import logging

try:
Expand Down Expand Up @@ -71,6 +72,10 @@ def set_logger(self):
self.system.level_logging(level)
return self.show_logger()

@appier.route("/environ", "GET")
def show_environ(self):
return self.json(dict(os.environ), sort_keys = True)

@appier.route("/info", "GET")
def system_info(self):
full = self.field("full", True, cast = bool)
Expand Down

0 comments on commit 3e20502

Please sign in to comment.