extended logging in api

This commit is contained in:
Marcus Westin 2020-01-13 21:19:55 +01:00
parent 2e5d6b33b1
commit dcef9bbeb2

View file

@ -44,7 +44,8 @@ class PlejdApi extends EventEmitter {
} }
login() { login() {
logger('login()'); console.log('plejd-api: login()');
console.log('logging into ' + this.siteName);
const self = this; const self = this;
const instance = axios.create({ const instance = axios.create({
@ -79,7 +80,7 @@ class PlejdApi extends EventEmitter {
} }
getCryptoKey(callback) { getCryptoKey(callback) {
logger('getCryptoKey()'); console.log('plejd-api: getCryptoKey()');
const self = this; const self = this;
const instance = axios.create({ const instance = axios.create({