This commit is contained in:
cmyui 2019-02-16 13:49:52 -05:00
parent ed45506e64
commit d26270ed73
2 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class handler(requestsManager.asyncRequestHandler):
friends = True friends = True
# Console output # Console output
fileNameShort = fileName[:32]+"..." if len(fileName) > 32 else fileName[:-4] fileNameShort = fileName[:48]+"..." if len(fileName) > 48 else fileName[:-4]
log.info("[{}] Requested beatmap {}".format("RELAX" if scoreboardType == 1 and int(self.get_argument("mods")) & 128 else "VANILLA", fileNameShort)) log.info("[{}] Requested beatmap {}".format("RELAX" if scoreboardType == 1 and int(self.get_argument("mods")) & 128 else "VANILLA", fileNameShort))
# Create beatmap object and set its data # Create beatmap object and set its data

View File

@ -330,7 +330,9 @@ class handler(requestsManager.asyncRequestHandler):
beatmap.incrementPlaycount(s.fileMd5, s.passed) beatmap.incrementPlaycount(s.fileMd5, s.passed)
# Print out score submission # Print out score submission
log.info("[{}] {} has submitted a score on {}...".format("RELAX" if isRelaxing else "VANILLA", username, beatmapInfo.songName.encode().decode("ASCII", "ignore"))) songNameFull = beatmapInfo.songName.encode().decode("ASCII", "ignore")
songNameShort = songNameFull[:48]+"..." if len(songNameFull) > 48 else songNameFull[:-4]
log.info("[{}] {} has submitted a score on {}...".format("RELAX" if isRelaxing else "VANILLA", username, songNameShort))
# Let the api know of this score # Let the api know of this score
if s.scoreID: if s.scoreID: