Skip to content

Commit

Permalink
removed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
julienfdev committed Sep 2, 2023
1 parent b7dd241 commit c8d7748
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/classes/cmgr-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export class CmgrCommand extends Sim800Command {
arg: String(index),
completeWhen: 'OK',
errorWhen: 'ERROR',
observer: {
next: (data) => {
console.log('CMGR DATA: ', data);
},
},
expectedData: [
'+CMGR: ',
(data) => {
Expand Down
1 change: 0 additions & 1 deletion src/handlers/sim800.error.handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Sim800ClientConfig } from 'interfaces/sim800-client-config.interface';

export const sim800ErrorHandler = (error: Error, logger: Sim800ClientConfig['logger']) => {
console.log('ERROR', error);
logger?.error(error.message);
};
1 change: 0 additions & 1 deletion src/sim800.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export class Sim800Client implements Sim800EventEmitter {
existingSms.parts.every((part) => part.status === Sim800OutgoingSmsStatus.Sent)
) {
existingSms.status = Sim800OutgoingSmsStatus.Sent;
console.log('SENT SMS', existingSms);
}
} else {
this.outboxSpooler.push(sms.data);
Expand Down
1 change: 0 additions & 1 deletion src/subscribers/new-sms-subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const newSmsSubscriberFactory = (client: Sim800Client, logger: LoggerLike
// extract the storage from the +CMTI "XX" message
const simIndex = parseInt(data.split(',')[1], 10);
const result = (await client.send(new CmgrCommand(simIndex), { raw: true })) as string[];
console.log('RESULT', result);
const sms = parse(result[1]);
if (sms instanceof Deliver) {
if (sms.getParts().every((part) => part.header === null)) {
Expand Down

0 comments on commit c8d7748

Please sign in to comment.