Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
2press authored Apr 13, 2019
1 parent c1a27a3 commit 9a96612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sc2monitor/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class Log(Base):
id = Column(Integer, primary_key=True) # auto incrementing
logger = Column(String(64)) # the name of the logger. (e.g. myapp.views)
level = Column(String(64)) # info, debug, or error?
trace = Column(String(1024)) # the full traceback printout
trace = Column(String(2048)) # the full traceback printout
msg = Column(String(255)) # any custom log you may have included
datetime = Column(DateTime, default=datetime.now)

Expand All @@ -413,7 +413,7 @@ def __unicode__(self):
def __repr__(self):
"""Represent database object."""
return "<Log: {} - {}>".format(
self.datetime.strftime('%m/%d/%Y-%H:%M:%S'), self.msg[:50])
self.datetime.strftime('%m/%d/%Y-%H:%M:%S'), self.msg[:100])


class Run(Base):
Expand Down

0 comments on commit 9a96612

Please sign in to comment.