dashboardwireguard-vpn-setupwireguard-vpnwireguard-tunnelwireguard-dashboardwireguardwg-managervpnsite-to-siteobfuscation
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
378 B
11 lines
378 B
from loguru import logger
|
|
from fastapi import HTTPException
|
|
from jinja2 import Environment, PackageLoader
|
|
jinja_env = Environment(loader=PackageLoader(__name__, 'templates'))
|
|
|
|
|
|
class WGMHTTPException(HTTPException):
|
|
|
|
def __init__(self, status_code: int, detail: str = None):
|
|
HTTPException.__init__(self, status_code, detail)
|
|
logger.opt(depth=1).error(detail)
|