diff --git a/handlers/getScoresHandler.pyx b/handlers/getScoresHandler.pyx index 0f5f044..8534f33 100644 --- a/handlers/getScoresHandler.pyx +++ b/handlers/getScoresHandler.pyx @@ -83,7 +83,7 @@ class handler(requestsManager.asyncRequestHandler): friends = True # 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)) # Create beatmap object and set its data diff --git a/handlers/submitModularHandler.pyx b/handlers/submitModularHandler.pyx index fb337ba..aa04b8b 100644 --- a/handlers/submitModularHandler.pyx +++ b/handlers/submitModularHandler.pyx @@ -330,7 +330,9 @@ class handler(requestsManager.asyncRequestHandler): beatmap.incrementPlaycount(s.fileMd5, s.passed) # 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 if s.scoreID: