Skip to content

Commit dfc51ce

Browse files
committed
Deactivated debug statements
1 parent 6623f83 commit dfc51ce

5 files changed

Lines changed: 19 additions & 19 deletions

File tree

source/main/data/communications/connection/ConnectionManager.mc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ import Toybox.Time;
169169
// we perform the check only once, or if requested by a sync delegate after
170170
// a failed sync.
171171

172-
Logger.debug( "ConnectionManager.tryWifiConnectionAndTriggerNextRequest: checking for Wi-Fi connection" );
172+
// Logger.debug( "ConnectionManager.tryWifiConnectionAndTriggerNextRequest: checking for Wi-Fi connection" );
173173

174174
// WIFI_CHECK_PENDING is only used for the transition from
175175
// BLUETOOTH_CONNECTED to other states

source/main/data/communications/sync-delegates/base/BaseSyncDelegate.mc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class BaseSyncDelegate extends SyncDelegate {
166166
// Exits sync mode. Subclasses must call this method when their sync
167167
// operation has completed successfully.
168168
public function finishSync() as Void {
169-
Logger.debug( "BaseSyncDelegate.finishSync" );
169+
// Logger.debug( "BaseSyncDelegate.finishSync" );
170170
onSyncFinished();
171171
Communications.notifySyncComplete( null );
172172
// Logger.debug( "BaseSyncDelegate.finishSync end" );
@@ -191,14 +191,14 @@ class BaseSyncDelegate extends SyncDelegate {
191191
// To prevent this, we set _isSyncNeeded to true when a sync
192192
// starts and reset it to false once the sync has finished.
193193
public function isSyncNeeded() as Boolean {
194-
Logger.debug( "BaseSyncDelegate.isSyncNeeded=" + _isSyncNeeded );
194+
// Logger.debug( "BaseSyncDelegate.isSyncNeeded=" + _isSyncNeeded );
195195
return _isSyncNeeded;
196196
}
197197

198198
// Subclasses must call this method when their sync operation fails.
199199
// It exits sync mode and displays an error message to the user.
200200
public function onSyncException( ex as Exception ) as Void {
201-
Logger.debug( "BaseSyncDelegate.onSyncException" );
201+
// Logger.debug( "BaseSyncDelegate.onSyncException" );
202202

203203
onSyncFinished();
204204

@@ -221,7 +221,7 @@ class BaseSyncDelegate extends SyncDelegate {
221221
// is handled here, so performSync implementation may throw
222222
// exceptions and expect them to be handled.
223223
public function onStartSync() as Void {
224-
Logger.debug( "BaseSyncDelegate.onStartSync" );
224+
// Logger.debug( "BaseSyncDelegate.onStartSync" );
225225
try {
226226
// Logger.debugConnectionInfo();
227227

@@ -243,7 +243,7 @@ class BaseSyncDelegate extends SyncDelegate {
243243
// with an error message.
244244
// Cancels all pending requests and exits sync mode.
245245
public function onStopSync() as Void {
246-
Logger.debug( "BaseSyncDelegate.onStopSync" );
246+
// Logger.debug( "BaseSyncDelegate.onStopSync" );
247247

248248
// See consumeWifiCheckRequest() for details
249249
_wifiCheckRequest = true;
@@ -268,9 +268,9 @@ class BaseSyncDelegate extends SyncDelegate {
268268
// connection, which is likely to be closed before the request
269269
// completes.
270270
public function onSyncFinished() as Void {
271-
Logger.debug( "BaseSyncDelegate.onSyncFinished" );
271+
// Logger.debug( "BaseSyncDelegate.onSyncFinished" );
272272
if( ! _hasSyncFinished ) {
273-
Logger.debug( "BaseSyncDelegate.onSyncFinished: cleaning up!" );
273+
// Logger.debug( "BaseSyncDelegate.onSyncFinished: cleaning up!" );
274274

275275
// See isSyncNeeded() for details.
276276
_isSyncNeeded = false;
@@ -285,7 +285,7 @@ class BaseSyncDelegate extends SyncDelegate {
285285
// See the class-level comment on onStopSync() for details.
286286
_hasSyncFinished = true;
287287
} else {
288-
Logger.debug( "BaseSyncDelegate.onSyncFinished: was called already, doing nothing!" );
288+
// Logger.debug( "BaseSyncDelegate.onSyncFinished: was called already, doing nothing!" );
289289
}
290290
}
291291

@@ -300,7 +300,7 @@ class BaseSyncDelegate extends SyncDelegate {
300300
// Marks this instance as needing a sync, stops the sitemap request timer,
301301
// and requests sync mode from the CIQ API.
302302
public function startSync( msg as String ) as Void {
303-
Logger.debug( "BaseSyncDelegate.startSync" );
303+
// Logger.debug( "BaseSyncDelegate.startSync" );
304304
try {
305305
// Logger.debugConnectionInfo();
306306

@@ -319,7 +319,7 @@ class BaseSyncDelegate extends SyncDelegate {
319319
_isSyncNeeded = true;
320320
_hasSyncFinished = false;
321321
} catch( ex ) {
322-
Logger.debug( "BaseSyncDelegate.startSync: exception, restarting sitemap request" );
322+
// Logger.debug( "BaseSyncDelegate.startSync: exception, restarting sitemap request" );
323323
SitemapRequest.get().start();
324324
throw ex;
325325
}

source/main/data/communications/sync-delegates/command/CommandSyncDelegate.mc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CommandSyncDelegate extends BaseSyncDelegate {
3434

3535
// Constructor
3636
private function initialize() {
37-
Logger.debug( "CommandSyncDelegate.initialize" );
37+
// Logger.debug( "CommandSyncDelegate.initialize" );
3838
BaseSyncDelegate.initialize();
3939
}
4040

@@ -54,15 +54,15 @@ class CommandSyncDelegate extends BaseSyncDelegate {
5454
if( _cmd != null ) {
5555
return _cmd;
5656
} else {
57-
Logger.debug( "CommandSyncDelegate.ensureCommand: command is missing" );
57+
// Logger.debug( "CommandSyncDelegate.ensureCommand: command is missing" );
5858
throw new GeneralException( "CommandSyncDelegate: command is missing" );
5959
}
6060
}
6161

6262
// Provides the item name to the command request
6363
// Part of the CommandRequestDelegate interface
6464
public function getItemName() as String {
65-
Logger.debug( "CommandSyncDelegate.getItemName" );
65+
// Logger.debug( "CommandSyncDelegate.getItemName" );
6666
return ensureCommand()[0];
6767
}
6868

@@ -93,7 +93,7 @@ class CommandSyncDelegate extends BaseSyncDelegate {
9393
// a Monkey C limitation that prevents overriding protected or
9494
// private methods.
9595
public function performSync() as Void {
96-
Logger.debug( "CommandSyncDelegate.performSync" );
96+
// Logger.debug( "CommandSyncDelegate.performSync" );
9797

9898
// Create the command request with self as dummy-item and
9999
// true indicating that it should be in sync mode

source/main/data/communications/sync-delegates/sitemap/SitemapSyncTasks.mc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import Toybox.Lang;
3939
}
4040

4141
public function invoke() as Void {
42-
Logger.debug( "PostSyncTask: restarting sitemap request" );
42+
// Logger.debug( "PostSyncTask: restarting sitemap request" );
4343
SitemapRequest.get().start();
4444
}
4545
}

source/main/infrastructure/appbase/OHApp.mc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ class OHApp extends Application.AppBase {
111111
// to request a sitemap or send a command via WiFi.
112112
(:typecheck(disableGlanceCheck))
113113
function getSyncDelegate() as $.Toybox.Communications.SyncDelegate or Null {
114-
Logger.debug( "OHApp.getSyncDelegate" );
114+
// Logger.debug( "OHApp.getSyncDelegate" );
115115

116116
var syncDelegate = BaseSyncDelegate.getCurrentSyncDelegate();
117117

118118
if( syncDelegate != null ) {
119-
Logger.debug( "OHApp.getSyncDelegate: returning current sync delegate" );
119+
// Logger.debug( "OHApp.getSyncDelegate: returning current sync delegate" );
120120
return syncDelegate;
121121
} else {
122-
Logger.debug( "OHApp.getSyncDelegate: no current sync delegate, defaulting to sitemap sync delegate" );
122+
// Logger.debug( "OHApp.getSyncDelegate: no current sync delegate, defaulting to sitemap sync delegate" );
123123
return SitemapSyncDelegate.get();
124124
}
125125
}

0 commit comments

Comments
 (0)