Skip to content

Commit

Permalink
chore: cleanup debug logs
Browse files Browse the repository at this point in the history
no issue
  • Loading branch information
pociej committed Jun 18, 2024
1 parent e1f370e commit dec3c38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion deploy/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN curl -L https://join.golem.network/as-requestor --output as-requestor.sh
RUN chmod +x as-requestor.sh

ENV PATH="${PATH}:/root/.local/bin"
ENV DEBUG="task-executor:*"
# switch yagna version if necessery
ARG YAGNA_VERSION

Expand Down
5 changes: 4 additions & 1 deletion frontend/src/hooks/events/useEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ export const useEvents = <K extends Event>({

useEffect(() => {
if (currentEvents) {
console.log("currentEvents", currentEvents);
currentEvents.forEach((e: any) => {
if (!previousEvents.current.find((p) => getId(p) === getId(e))) {
events$.current?.next(e);
}
});
setIsFirstRun(false);
setTimeout(() => {
setIsFirstRun(false);
}, 1000);
if (!isFirstRun) {
previousEvents.current = currentEvents;
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/hooks/events/useYagnaEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const useYagnaEvent = (event: yagnaEventTopic) => {
socketRef.current.connect();

socketRef.current.on("event", (data: any) => {
console.log("event", data, isInTopic(event)(data.event.eventType));
if (!isInTopic(event)(data.event.eventType)) return;
emit({ id: data.id, ...data[event] }, data.event.eventType);
});
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export type Payload = {
agreementId: string;
invoiceId: string;
transactionId?: string;
amount: string;
};

[Event.AGREEMENT_SIGNED]: {
Expand Down

0 comments on commit dec3c38

Please sign in to comment.