mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-08 22:24:22 -05:00
fixed testing
This commit is contained in:
@@ -56,7 +56,7 @@ def index():
|
||||
"views/signedout.html",
|
||||
sms_rate=CURRENT_SMS_RATE,
|
||||
counts=counts,
|
||||
is_api_down=is_api_down()
|
||||
is_api_down=is_api_down(),
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
<!-- <div class="usa-alert usa-alert--info usa-alert--slim" aria-label="Site alert,,,,">
|
||||
<div class="grid-container padding-x-0">
|
||||
<div class="usa-alert__body">
|
||||
<p class="usa-alert__text">
|
||||
We're currently having some technical issues. We're working on it and will be back soon. Thanks for your patience!
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<section class="grid-container usa-section margin-top-5 margin-bottom-5">
|
||||
<div class="grid-row flex-justify-center">
|
||||
<div class="desktop:grid-col-3 tablet:grid-col-4 mobile:grid-col-12 flex-align-center">
|
||||
@@ -16,9 +7,9 @@
|
||||
alt="Mobile phone showing error screen"/>
|
||||
</div>
|
||||
<div class="desktop:grid-col-6 tablet:grid-col-12 padding-left-0 desktop:padding-left-5">
|
||||
<h1 class="font-body-3xl line-height-sans-2 text-bold">
|
||||
<p class="font-body-3xl line-height-sans-2 text-bold">
|
||||
There's currently a technical issue.
|
||||
</h1>
|
||||
</p>
|
||||
<p class="font-body-lg line-height-sans-2">Thank you for your patience while we work on it. Notify will be back soon.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,12 +12,11 @@ from pythonjsonlogger.jsonlogger import JsonFormatter as BaseJSONFormatter
|
||||
|
||||
class ColorFormatter(logging.Formatter):
|
||||
COLOR_MAP = {
|
||||
'DEBUG': '\033[94m',
|
||||
'WARNING': '\033[93m',
|
||||
'ERROR': '\033[91m',
|
||||
'CRITICAL': '\033[95m',
|
||||
"WARNING": "\033[93m",
|
||||
"ERROR": "\033[91m",
|
||||
"CRITICAL": "\033[95m",
|
||||
}
|
||||
RESET = '\033[0m'
|
||||
RESET = "\033[0m"
|
||||
|
||||
def format(self, record: logging.LogRecord) -> str:
|
||||
color = self.COLOR_MAP.get(record.levelname, self.RESET)
|
||||
|
||||
Reference in New Issue
Block a user