Skip to content

Commit

Permalink
Replace console.log with debug in Client.updateSharedAccessSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Cauchois committed Apr 12, 2017
1 parent feb64f9 commit 2068113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device/core/lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ Client.fromSharedAccessSignature = function (sharedAccessSignature, Transport) {
Client.prototype.updateSharedAccessSignature = function (sharedAccessSignature, updateSasCallback) {
/*Codes_SRS_NODE_DEVICE_CLIENT_16_031: [The updateSharedAccessSignature method shall throw a ReferenceError if the sharedAccessSignature parameter is falsy.]*/
if (!sharedAccessSignature) throw new ReferenceError('sharedAccessSignature is falsy');
if (this._useAutomaticRenewal) console.log('calling updateSharedAccessSignature while using automatic sas renewal');
if (this._useAutomaticRenewal) debug('calling updateSharedAccessSignature while using automatic sas renewal');
/*Codes_SRS_NODE_DEVICE_CLIENT_06_002: [The `updateSharedAccessSignature` method shall throw a `ReferenceError` if the client was created using x509.]*/
if (this._connectionString && ConnectionString.parse(this._connectionString).x509) throw new ReferenceError('client uses x509');
this._fsm.handle('updateSharedAccessSignature', sharedAccessSignature, function (err, result) {
Expand Down

0 comments on commit 2068113

Please sign in to comment.