misc(bible): removing some annoying debugging code
This commit is contained in:
parent
e6b72e80ee
commit
d1c0ed2e14
1 changed files with 4 additions and 8 deletions
|
@ -71,9 +71,8 @@ class Bible(commands.Cog):
|
||||||
async with self.session.get(url, headers=headers, params=params) as response:
|
async with self.session.get(url, headers=headers, params=params) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"_get_passage executed with a response code of: %s\n%s",
|
"_get_passage executed with a response code of: %s",
|
||||||
response.status,
|
response.status,
|
||||||
json.dumps(data),
|
|
||||||
)
|
)
|
||||||
if response.status == 401:
|
if response.status == 401:
|
||||||
raise bible.errors.Unauthorized()
|
raise bible.errors.Unauthorized()
|
||||||
|
@ -110,9 +109,8 @@ class Bible(commands.Cog):
|
||||||
async with self.session.get(url, headers=headers) as response:
|
async with self.session.get(url, headers=headers) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"_get_books executed with a response code of: %s\n%s",
|
"_get_books executed with a response code of: %s",
|
||||||
response.status,
|
response.status,
|
||||||
json.dumps(data),
|
|
||||||
)
|
)
|
||||||
if response.status == 401:
|
if response.status == 401:
|
||||||
raise bible.errors.Unauthorized()
|
raise bible.errors.Unauthorized()
|
||||||
|
@ -130,9 +128,8 @@ class Bible(commands.Cog):
|
||||||
async with self.session.get(url, headers=headers) as response:
|
async with self.session.get(url, headers=headers) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"_get_chapters executed with a response code of: %s\n%s",
|
"_get_chapters executed with a response code of: %s",
|
||||||
response.status,
|
response.status,
|
||||||
json.dumps(data),
|
|
||||||
)
|
)
|
||||||
if response.status == 401:
|
if response.status == 401:
|
||||||
raise bible.errors.Unauthorized()
|
raise bible.errors.Unauthorized()
|
||||||
|
@ -150,9 +147,8 @@ class Bible(commands.Cog):
|
||||||
async with self.session.get(url, headers=headers) as response:
|
async with self.session.get(url, headers=headers) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"_get_verses executed with a response code of: %s\n%s",
|
"_get_verses executed with a response code of: %s",
|
||||||
response.status,
|
response.status,
|
||||||
json.dumps(data),
|
|
||||||
)
|
)
|
||||||
if response.status == 401:
|
if response.status == 401:
|
||||||
raise bible.errors.Unauthorized()
|
raise bible.errors.Unauthorized()
|
||||||
|
|
Loading…
Reference in a new issue