Merge lp:~abreu-alexandre/unity-webapps-qml/cleanup-logs into lp:unity-webapps-qml

Proposed by Alexandre Abreu
Status: Merged
Approved by: Alexandre Abreu
Approved revision: 155
Merged at revision: 155
Proposed branch: lp:~abreu-alexandre/unity-webapps-qml/cleanup-logs
Merge into: lp:unity-webapps-qml
Diff against target: 142 lines (+0/-27)
5 files modified
src/Ubuntu/UnityWebApps/UnityWebApps.qml (+0/-2)
src/Ubuntu/UnityWebApps/UnityWebAppsUtils.js (+0/-1)
src/Ubuntu/UnityWebApps/common/js/unity-binding-bridge.js (+0/-7)
src/Ubuntu/UnityWebApps/plugin/unity-webapps-api.cpp (+0/-9)
src/Ubuntu/UnityWebApps/plugin/unity-webapps-app-model.cpp (+0/-8)
To merge this branch: bzr merge lp:~abreu-alexandre/unity-webapps-qml/cleanup-logs
Reviewer Review Type Date Requested Status
David Barth (community) Approve
Justin McPherson Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+264444@code.launchpad.net

Commit message

Clean up very verbose and non informative logs

Description of the change

Clean up very verbose and non informative logs

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Justin McPherson (justinmcp) :
review: Approve
Revision history for this message
David Barth (dbarth) wrote :

It does clean the logs. I would keep some of the messages as comments in the code though, as some of the cases are not totally obvious when reading the source.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Ubuntu/UnityWebApps/UnityWebApps.qml'
--- src/Ubuntu/UnityWebApps/UnityWebApps.qml 2015-04-17 18:57:46 +0000
+++ src/Ubuntu/UnityWebApps/UnityWebApps.qml 2015-07-10 17:59:01 +0000
@@ -395,8 +395,6 @@
395 if (model) {395 if (model) {
396 if (model.providesSingleInlineWebapp() && webapps.name.length === 0) {396 if (model.providesSingleInlineWebapp() && webapps.name.length === 0) {
397 webapps.name = model.getSingleInlineWebappName();397 webapps.name = model.getSingleInlineWebappName();
398
399 console.log('Webapp name updated to ' + webapps.name)
400 }398 }
401 __setupNamedWebappEnvironment();399 __setupNamedWebappEnvironment();
402 }400 }
403401
=== modified file 'src/Ubuntu/UnityWebApps/UnityWebAppsUtils.js'
--- src/Ubuntu/UnityWebApps/UnityWebAppsUtils.js 2015-01-08 19:36:38 +0000
+++ src/Ubuntu/UnityWebApps/UnityWebAppsUtils.js 2015-07-10 17:59:01 +0000
@@ -79,7 +79,6 @@
79 var script = userScriptUrls[i];79 var script = userScriptUrls[i];
80 if (this._injectedUserScripts.some(80 if (this._injectedUserScripts.some(
81 function(e) { return e === script; })) {81 function(e) { return e === script; })) {
82 console.log('Skipping already injected script: ' + script)
83 continue;82 continue;
84 }83 }
8584
8685
=== modified file 'src/Ubuntu/UnityWebApps/common/js/unity-binding-bridge.js'
--- src/Ubuntu/UnityWebApps/common/js/unity-binding-bridge.js 2014-07-18 13:43:55 +0000
+++ src/Ubuntu/UnityWebApps/common/js/unity-binding-bridge.js 2015-07-10 17:59:01 +0000
@@ -126,13 +126,6 @@
126 console.log('Error while dispatching callback call: ' + e)126 console.log('Error while dispatching callback call: ' + e)
127 }127 }
128 }128 }
129 else {
130 try {
131 console.log('Unknown message received: '
132 + JSON.stringify(message));
133 }
134 catch(e) {}
135 }
136 });129 });
137 },130 },
138131
139132
=== modified file 'src/Ubuntu/UnityWebApps/plugin/unity-webapps-api.cpp'
--- src/Ubuntu/UnityWebApps/plugin/unity-webapps-api.cpp 2014-03-31 20:00:56 +0000
+++ src/Ubuntu/UnityWebApps/plugin/unity-webapps-api.cpp 2015-07-10 17:59:01 +0000
@@ -121,8 +121,6 @@
121 desktopId = QString("%1.desktop").arg(QString(qgetenv("APP_ID")));121 desktopId = QString("%1.desktop").arg(QString(qgetenv("APP_ID")));
122 }122 }
123123
124 qDebug() << "UnityWebapps initialized with desktop id: " << desktopId;
125
126 bool success = initInternal(name,124 bool success = initInternal(name,
127 displayName,125 displayName,
128 domain,126 domain,
@@ -174,7 +172,6 @@
174{172{
175 if (_appInfos != NULL)173 if (_appInfos != NULL)
176 {174 {
177 qDebug() << "WARNING: Found existing application info for app " << name;
178 return;175 return;
179 }176 }
180177
@@ -225,14 +222,12 @@
225222
226 if ( ! _model->exists(displayName))223 if ( ! _model->exists(displayName))
227 {224 {
228 qDebug() << "Initializing a non-local webapp (not found installed locally)";
229 return true;225 return true;
230 }226 }
231227
232 QString modelAppDomain = _model->getDomainFor(displayName);228 QString modelAppDomain = _model->getDomainFor(displayName);
233 if (modelAppDomain.isEmpty())229 if (modelAppDomain.isEmpty())
234 {230 {
235 qDebug() << "Validation a weird webapps install: domain name empty for " << displayName;
236 return true;231 return true;
237 }232 }
238233
@@ -246,7 +241,6 @@
246 QStandardPaths::standardLocations(QStandardPaths::HomeLocation);241 QStandardPaths::standardLocations(QStandardPaths::HomeLocation);
247 if (userhomeList.isEmpty())242 if (userhomeList.isEmpty())
248 {243 {
249 qDebug() << "Error cannot find current '~'";
250 return QString();244 return QString();
251 }245 }
252246
@@ -442,8 +436,6 @@
442 if (qgetenv("UNITY_WEBAPPS_QML_GLOBAL_DESKTOP_FILE_LOCATION").data() != NULL)436 if (qgetenv("UNITY_WEBAPPS_QML_GLOBAL_DESKTOP_FILE_LOCATION").data() != NULL)
443 {437 {
444 DESKTOP_FILE_LOCATION = QString(qgetenv("UNITY_WEBAPPS_QML_GLOBAL_DESKTOP_FILE_LOCATION"));438 DESKTOP_FILE_LOCATION = QString(qgetenv("UNITY_WEBAPPS_QML_GLOBAL_DESKTOP_FILE_LOCATION"));
445
446 qDebug() << "Using " << DESKTOP_FILE_LOCATION << " as a global desktop file location search path";
447 }439 }
448440
449 QFileInfo fileInfo(QString("%1/%2")441 QFileInfo fileInfo(QString("%1/%2")
@@ -570,7 +562,6 @@
570 QString shareDirPath (getUserSharePath());562 QString shareDirPath (getUserSharePath());
571 if (shareDirPath.isEmpty())563 if (shareDirPath.isEmpty())
572 {564 {
573 qDebug() << "Error while trying to get current session home directory";
574 return;565 return;
575 }566 }
576567
577568
=== modified file 'src/Ubuntu/UnityWebApps/plugin/unity-webapps-app-model.cpp'
--- src/Ubuntu/UnityWebApps/plugin/unity-webapps-app-model.cpp 2015-01-08 19:36:38 +0000
+++ src/Ubuntu/UnityWebApps/plugin/unity-webapps-app-model.cpp 2015-07-10 17:59:01 +0000
@@ -127,7 +127,6 @@
127127
128 if (path.isEmpty())128 if (path.isEmpty())
129 {129 {
130 qDebug() << "Empty path in webapps model search path update request";
131 return;130 return;
132 }131 }
133132
@@ -142,10 +141,6 @@
142141
143 _searchPath = doCorrectSearchPath(searchDir.path());142 _searchPath = doCorrectSearchPath(searchDir.path());
144143
145 qDebug() << "Using '"
146 << _searchPath
147 << "' as the default search path for installed webapps";
148
149 Q_EMIT searchPathChanged(_searchPath);144 Q_EMIT searchPathChanged(_searchPath);
150}145}
151146
@@ -261,7 +256,6 @@
261256
262 if (!isValidInstall(installationSearchPath))257 if (!isValidInstall(installationSearchPath))
263 {258 {
264 qDebug() << "Invalid webapps installation";
265 return;259 return;
266 }260 }
267261
@@ -289,8 +283,6 @@
289 parser.parse (QFileInfo (webappInfos.value().manifestFilename));283 parser.parse (QFileInfo (webappInfos.value().manifestFilename));
290 if (!manifest.isvalid())284 if (!manifest.isvalid())
291 {285 {
292 qDebug() << "Invalid webapps manifest found in: "
293 << candidateWebappFolder.absoluteFilePath();
294 continue;286 continue;
295 }287 }
296288

Subscribers

People subscribed via source and target branches

to all changes: