mirror of
https://github.com/nihilvux/bancho.py.git
synced 2025-09-17 11:07:54 -07:00
change logging server to our's
TODO: get a domain to point logs to.
This commit is contained in:
@@ -235,7 +235,8 @@ async def log_strange_occurrence(obj: object) -> None:
|
|||||||
if app.settings.AUTOMATICALLY_REPORT_PROBLEMS:
|
if app.settings.AUTOMATICALLY_REPORT_PROBLEMS:
|
||||||
# automatically reporting problems to cmyui's server
|
# automatically reporting problems to cmyui's server
|
||||||
response = await http_client.post(
|
response = await http_client.post(
|
||||||
url="https://log.cmyui.xyz/",
|
url="placeholderdata",
|
||||||
|
# TODO: Point this to an actual server.
|
||||||
headers={
|
headers={
|
||||||
"Bancho-Version": app.settings.VERSION,
|
"Bancho-Version": app.settings.VERSION,
|
||||||
"Bancho-Domain": app.settings.DOMAIN,
|
"Bancho-Domain": app.settings.DOMAIN,
|
||||||
@@ -245,13 +246,13 @@ async def log_strange_occurrence(obj: object) -> None:
|
|||||||
if response.status_code == 200 and response.read() == b"ok":
|
if response.status_code == 200 and response.read() == b"ok":
|
||||||
uploaded = True
|
uploaded = True
|
||||||
log(
|
log(
|
||||||
"Logged strange occurrence to cmyui's server. "
|
"You've encountered something strange... This problem has been logged."
|
||||||
"Thank you for your participation! <3",
|
"Thank you for your participation! <3",
|
||||||
Ansi.LBLUE,
|
Ansi.LBLUE,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
log(
|
log(
|
||||||
f"Autoupload to cmyui's server failed (HTTP {response.status_code})",
|
f"Auto-upload to logging server failed (HTTP {response.status_code})",
|
||||||
Ansi.LRED,
|
Ansi.LRED,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -271,7 +272,7 @@ async def log_strange_occurrence(obj: object) -> None:
|
|||||||
)
|
)
|
||||||
log(
|
log(
|
||||||
"It would be greatly appreciated if you could forward this to the "
|
"It would be greatly appreciated if you could forward this to the "
|
||||||
"bancho.py development team. To do so, please email josh@akatsuki.gg",
|
"server's development team. To do so, please contact @crvmblr on discord.",
|
||||||
Ansi.LYELLOW,
|
Ansi.LYELLOW,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user