Skip to content

Commit

Permalink
Merge pull request #835 from clavin/api-call-extra-debug
Browse files Browse the repository at this point in the history
Add method name to apiCall debug
(Coverage isn't being reported, but this change shouldn't affect coverage.)
  • Loading branch information
clavin committed Jul 25, 2019
2 parents dd26e23 + 267647c commit 673aaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-api/src/WebClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class WebClient extends EventEmitter<WebClientEvent> {
* @param options options
*/
public async apiCall(method: string, options?: WebAPICallOptions): Promise<WebAPICallResult> {
this.logger.debug('apiCall() start');
this.logger.debug(`apiCall('${method}') start`);

if (typeof options === 'string' || typeof options === 'number' || typeof options === 'boolean') {
throw new TypeError(`Expected an options argument but instead received a ${typeof options}`);
Expand Down

0 comments on commit 673aaf3

Please sign in to comment.