Skip to content

Commit 84997a4

Browse files
authored
Merge pull request #289 from getmaxun/cleanup
chore: code cleanup
2 parents e4ab1c3 + 970a846 commit 84997a4

File tree

6 files changed

+2
-9
lines changed

6 files changed

+2
-9
lines changed

server/src/routes/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ router.post("/register", async (req, res) => {
5252
userId: user.id,
5353
registeredAt: new Date().toISOString(),
5454
});
55-
console.log(`User registered - ${user.email}`);
55+
console.log(`User registered`);
5656
res.json(user);
5757
} catch (error: any) {
5858
console.log(`Could not register user - ${error}`);

server/src/workflow-management/scheduler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function createWorkflowAndStoreMetadata(id: string, userId: string) {
7373
} catch (e) {
7474
const { message } = e as Error;
7575
logger.log('info', `Error while scheduling a run with id: ${id}`);
76-
console.log(message);
76+
console.log(`Error while scheduling a run with id: ${id}:`, message);
7777
return {
7878
success: false,
7979
error: message,

server/src/workflow-management/selector.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,6 @@ interface SelectorResult {
864864
export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates, listSelector: string): Promise<SelectorResult> => {
865865
try {
866866
if (!listSelector) {
867-
console.log(`NON UNIQUE: MODE 1`)
868867
const selectors = await page.evaluate(({ x, y }: { x: number, y: number }) => {
869868
function getNonUniqueSelector(element: HTMLElement): string {
870869
let selector = element.tagName.toLowerCase();
@@ -932,7 +931,6 @@ export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates
932931
}, coordinates);
933932
return selectors || { generalSelector: '' };
934933
} else {
935-
console.log(`NON UNIQUE: MODE 2`)
936934
const selectors = await page.evaluate(({ x, y }: { x: number, y: number }) => {
937935
function getNonUniqueSelector(element: HTMLElement): string {
938936
let selector = element.tagName.toLowerCase();

src/components/molecules/RobotDuplicate.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ export const RobotDuplicationModal = ({ isOpen, handleStart, handleClose, initia
9393
return;
9494
}
9595

96-
console.log("handle save");
97-
9896
try {
9997
const success = await duplicateRecording(robot.recording_meta.id, targetUrl);
10098

src/components/organisms/RightSidePanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
220220
}
221221
stopGetText();
222222
const settings = getTextSettingsObject();
223-
console.log("SETTINGS", settings);
224223
const hasTextSteps = browserSteps.some(step => step.type === 'text');
225224
if (hasTextSteps) {
226225
socket?.emit('action', { action: 'scrapeSchema', settings });

src/pages/Login.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import i18n from '../i18n';
1010

1111
const Login = () => {
1212
const { t } = useTranslation();
13-
console.log(i18n)
14-
console.log(t)
1513
const [form, setForm] = useState({
1614
email: "",
1715
password: "",

0 commit comments

Comments
 (0)