diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-11-29 05:06:08 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:50 +0100 |
commit | 9cb390dc3be41600ebace6969f9cd36cd2dcc021 (patch) | |
tree | 4efc68d35ed02d5474581308a97e0c1e5d7f0c4f /src/base | |
parent | 1ec8c29f8efc77f728c1f1b733966c6a4dfe9d6e (diff) | |
download | usdx-9cb390dc3be41600ebace6969f9cd36cd2dcc021.tar.gz usdx-9cb390dc3be41600ebace6969f9cd36cd2dcc021.tar.xz usdx-9cb390dc3be41600ebace6969f9cd36cd2dcc021.zip |
moved all log messages a level up
log4cpp does not provide the TRACE log level. so it is needed that all
log messages shift a level up, so that DEBUG is used in replacement of
TRACE and INFO is now used for all messages that were DEBUG
Diffstat (limited to '')
-rw-r--r-- | src/base/songloading/songloading_strategy_txt.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/base/songloading/songloading_strategy_txt.cpp b/src/base/songloading/songloading_strategy_txt.cpp index d3551144..e390b781 100644 --- a/src/base/songloading/songloading_strategy_txt.cpp +++ b/src/base/songloading/songloading_strategy_txt.cpp @@ -53,7 +53,7 @@ namespace usdx std::size_t pos = line.find(':'); if (line[0] != '#' || pos == std::string::npos) { - log << log4cpp::Priority::DEBUG << + log << log4cpp::Priority::INFO << "Tried to parse invalid header line: '" << line << "'"; throw "Invalid header!"; } @@ -74,7 +74,7 @@ namespace usdx // line is already rtrimmed boost::trim_left(result.second); - log << log4cpp::Priority::DEBUG << "Found header: '" << + log << log4cpp::Priority::INFO << "Found header: '" << result.first << "' with value '" << result.second << "'"; return result; @@ -82,7 +82,7 @@ namespace usdx Song* SongloadingStrategyTxt::load_song(Song *song) { - log << log4cpp::Priority::DEBUG << + log << log4cpp::Priority::INFO << "Starting loading song from file: " << song->get_filename(); TextFile file(song->get_filename()); @@ -152,12 +152,12 @@ namespace usdx linestream >> line_out; if (linestream.good()) { linestream >> line_in; - log << log4cpp::Priority::DEBUG << "Found newline in line " << + log << log4cpp::Priority::INFO << "Found newline in line " << line_number << " with out of last line with " << line_out << " and in of next line " << line_in; } else { - log << log4cpp::Priority::DEBUG << "Found newline in line " << + log << log4cpp::Priority::INFO << "Found newline in line " << line_number << " with out of last line with " << line_out; } @@ -171,7 +171,7 @@ namespace usdx LocaleIndependentFloat new_bpm; linestream >> beat >> new_bpm; - log << log4cpp::Priority::DEBUG << "Found new bpm in line " << + log << log4cpp::Priority::INFO << "Found new bpm in line " << line_number << " starting at beat: " << beat << " and new bpm of " << new_bpm.get_value(); song->new_bpm(beat, new_bpm.get_value()); @@ -188,7 +188,7 @@ namespace usdx getline(linestream, lyric); boost::trim_right_if(lyric, boost::is_cntrl()); - log << log4cpp::Priority::DEBUG << "Found lyric: '" << lyric << + log << log4cpp::Priority::INFO << "Found lyric: '" << lyric << "' at line: " << line_number << " at beat: " << beat << " with length: " << length << " at height: " << height; song->new_note(type, beat, length, height, lyric); @@ -206,7 +206,7 @@ namespace usdx boost::trim(line); boost::trim_if(line, boost::is_cntrl()); - log << log4cpp::Priority::DEBUG << "Line: " << line; + log << log4cpp::Priority::INFO << "Line: " << line; if (header && line[0] == '#') { |