Skip to content

Commit 743df33

Browse files
committed
fix(Logging): Disable excessive logging of light data
Avoids console spam when verbose logging is active.
1 parent 1994b2e commit 743df33

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/configurations/ConfigurationManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ DeviceBuild ConfigurationManager::loadCompositionFromAudio(const QString& audioP
7373
if (!tags.contains("AUTHOR") || tags["AUTHOR"].size() != 1)
7474
throw InvalidLightDataException("Malformed light data! Could not extract the 'AUTHOR' tag.");
7575
QByteArray author{tags.value("AUTHOR").front().to8Bit().c_str()};
76-
qCInfo(configurationManagerVerbose) << "Author raw:" << author;
76+
//qCInfo(configurationManagerVerbose) << "Author raw:" << author;
7777
if (!tags.contains("COMPOSER") || tags["COMPOSER"].size() != 1)
7878
throw InvalidLightDataException("Malformed light data! Could not extract the 'COMPOSER' tag.");
7979
QString composer{tags.value("COMPOSER").front().to8Bit().c_str()};
@@ -110,7 +110,7 @@ DeviceBuild ConfigurationManager::loadCompositionFromAudio(const QString& audioP
110110
if (authorBase64Result.decodingStatus != QByteArray::Base64DecodingStatus::Ok)
111111
throw InvalidLightDataException("Malformed light data! Could not decode data.");
112112
author = authorBase64Result.decoded;
113-
qCInfo(configurationManagerVerbose) << "Author decoded:" << author;
113+
//qCInfo(configurationManagerVerbose) << "Author decoded:" << author;
114114

115115
// Decompress
116116
// Prepend the 4 byte header indicating the expected size (we use 200k bytes = 0x030D40) and uncompress the data
@@ -119,7 +119,7 @@ DeviceBuild ConfigurationManager::loadCompositionFromAudio(const QString& audioP
119119
QString decodedAuthor{qUncompress(author)};
120120
if (decodedAuthor.trimmed().isEmpty())
121121
throw InvalidLightDataException("Malformed light data! Could not uncompress data.\nAre you sure that you selected the right entry in the dropdown?");
122-
qCInfo(configurationManagerVerbose) << "Author csv:" << decodedAuthor;
122+
//qCInfo(configurationManagerVerbose) << "Author csv:" << decodedAuthor;
123123

124124
// Parse the data
125125
QList<QList<int>> lightData{parseLightData(decodedAuthor)};

0 commit comments

Comments
 (0)