Skip to content

Commit

Permalink
reduce vomit logs when importing a little
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 2, 2017
1 parent 3ec7644 commit 52e5a53
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1989,14 +1989,13 @@ void Profile::ImportScoresToEtterna() {

// if we still haven't correlated a score to a key, match by song title and number of notes
// score import is meant to be a qol and pre-existing scores need not undergo strict filtering -mina
LOG->Trace("Attempting to match score for %s by dir name", id.ToString().c_str());
if (!id.IsValid()) {
string unloaded = id.ToString();
unloaded = unloaded.substr(0, unloaded.size() - 1);
int jjq = unloaded.find_last_of("/");
unloaded = unloaded.substr(jjq + 1, unloaded.size() - jjq);

LOG->Trace("Unloaded to be matched %s", id.ToString());

for (size_t i = 0; i < songs.size(); ++i) {
SongID matchid;
matchid.FromSong(songs[i]);
Expand All @@ -2007,7 +2006,6 @@ void Profile::ImportScoresToEtterna() {
matchstring = matchstring.substr(jjq + 1, matchstring.size() - jjq);

if (unloaded == matchstring) {
LOG->Trace("Match at %s", matchid.ToString());
id = matchid;
break;
}
Expand All @@ -2016,7 +2014,6 @@ void Profile::ImportScoresToEtterna() {
Song* song = id.ToSong();

if (!song) {
LOG->Trace("no match found");
continue;
}

Expand Down

0 comments on commit 52e5a53

Please sign in to comment.