Skip to content

Commit 874e7f3

Browse files
author
Simon Berger
committed
Include exc info for Travis
1 parent 859780f commit 874e7f3

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
.pytest_cache/
44
venv/
55
gh-pages/
6-
logs/
76

87
data/config.json

gisi/__logging__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646

4747
"root": {
48-
"level": "WARN",
48+
"level": "WARNING",
4949
"handlers": ["console", "file"]
5050
}
5151
}

gisi/cogs/google.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ def parse(cls, data):
237237

238238

239239
class CSEImage:
240-
def __init__(self, contextLink, height, width, byteSize, thumbnailLink, thumbnailHeight,
241-
thumbnailWidth):
240+
def __init__(self, contextLink, height, width, byteSize, thumbnailLink, thumbnailHeight, thumbnailWidth):
242241
self.context_Link = contextLink
243242
self.height = height
244243
self.width = width

gisi/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def on_command(self, ctx):
187187
log.info(f"triggered command {ctx.command}")
188188

189189
async def on_error(self, event_method, *args, **kwargs):
190-
log.exception("Client error")
190+
log.exception("Client error", exc_info=True)
191191
if self.bot.webhook:
192192
args = "\n".join([f"{arg}" for arg in args])
193193
kwargs = "\n".join([f"{key}: {value}" for key, value in kwargs.items()])
@@ -202,7 +202,7 @@ async def on_command_error(self, context, exception):
202202
log.debug(f"ignoring unknown command {context.message.content}")
203203
return
204204

205-
log.error(f"Command error {context} / {exception}")
205+
log.error(f"Command error {context} / {exception}", exc_info=True)
206206

207207
if self.bot.webhook:
208208
ctx_em = Embed(title="Context Info", timestamp=datetime.now(), colour=Colours.ERROR_INFO,

logs/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)