Skip to content

Commit 71ff8cb

Browse files
author
Nic Bradley
committed
Removing extraneous logging
1 parent 5f13549 commit 71ff8cb

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

ChatSetAttr/1.11/ChatSetAttr.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,12 +1327,10 @@ var ChatSetAttr = function() {
13271327
output += this.createHeader();
13281328
output += this.createContent();
13291329
output += this.closeWrapper();
1330-
log(`Output: ${output}`);
13311330
sendChat(this.from, output, void 0, { noarchive });
13321331
}
13331332
createWhisper() {
13341333
if (this.whisper === false) {
1335-
log(`ChatOutput: Not sending as whisper`);
13361334
return ``;
13371335
}
13381336
if (this.playerID === "GM") {

ChatSetAttr/build/src/classes/ChatOutput.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,11 @@ export class ChatOutput {
6969
output += this.createHeader();
7070
output += this.createContent();
7171
output += this.closeWrapper();
72-
log(`Output: ${output}`);
7372
sendChat(this.from, output, undefined, { noarchive });
7473
};
7574

7675
private createWhisper() {
7776
if (this.whisper === false) {
78-
log(`ChatOutput: Not sending as whisper`);
7977
return ``;
8078
}
8179
if (this.playerID === "GM") {

ChatSetAttr/build/src/classes/ChatSetAttr.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,11 @@ export class ChatSetAttr {
129129

130130
private getTargets(msg: Roll20ChatMessage, flags: Option[]): Roll20Character[] {
131131
const target = this.targetFromOptions(flags);
132-
log(`[ChatSetAttr] Target strategy: ${target}`);
133132
if (!target) {
134133
return [];
135134
}
136135
const targetStrategy = this.getTargetStrategy(target);
137-
log(`[ChatSetAttr] Target message: ${msg.selected}`);
138136
const targets = this.getTargetsFromOptions(target, flags, msg.selected);
139-
log(`[ChatSetAttr] Targets: ${targets.join(", ")}`);
140137
const [validTargets, { messages, errors }] = targetStrategy.parse(targets, msg.playerid);
141138
this.messages.push(...messages);
142139
this.errors.push(...errors);

ChatSetAttr/build/src/classes/InputParser.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class InputParser {
7777
constructor() {};
7878

7979
public parse(message: Roll20ChatMessage): ParseResult {
80-
log(`InputParser.parse: message: ${JSON.stringify(message)}`);
8180
let input = this.processInlineRolls(message);
8281
for (const command of this.commands) {
8382
const commandString = `${this.commandPrefix}${command}`;
@@ -86,7 +85,6 @@ export class InputParser {
8685
}
8786
const regex = new RegExp(`(${this.commandPrefix}${command}.*)${this.commandSuffix}`);
8887
const match = input.match(regex);
89-
log(`InputParser.parse: command: ${command}, match: ${JSON.stringify(match)}`);
9088
if (match) {
9189
return this.parseAPICommand(command, match[1], CommandType.INLINE);
9290
}

0 commit comments

Comments
 (0)