Skip to content

Commit

Permalink
updated sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
jsec516 committed Jun 2, 2017
1 parent d8146bc commit 1fe49ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ Connection.prototype._request = function(method) {
this.emit('apiCall', { apiCallCount: this.apiCallCount });
log.debug('Request:', arguments);

if (mktoLogger) {
if (global && global.mktoLogger) {
mktoLogger('mkto call for ' + mktoOrgName + ' -> ' + args[0])
}

var requestFn = function requestFn(forceOAuth) {
return this.getOAuthToken(forceOAuth)
.then(function(token) {
Expand Down

0 comments on commit 1fe49ca

Please sign in to comment.