Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7dc54c1

Browse files
committed
remove unnecessary debug logs
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentce08fa6 commit7dc54c1

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

‎web-app/src/containers/Tutorial/components/Level.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,8 @@ const Level = ({
129129
})
130130
}
131131
React.useEffect(()=>{
132-
console.log(position.levelId)
133-
console.log(JSON.stringify(position))
134132
// set the hints to empty on level starts
135133
setDisplayHintsIndex(steps.map((s)=>-1))
136-
return()=>{
137-
console.log('LEVEL UNMOUNTED')
138-
}
139134
},[position.levelId])
140135

141136
constmenu=(

‎web-app/src/services/sentry/init.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import*assentryfrom'@sentry/browser'
22
import{NODE_ENV,SENTRY_DSN}from'../../environment'
3+
importloggerfrom'../logger'
34

45
try{
56
if(SENTRY_DSN&&NODE_ENV==='production'){
@@ -9,5 +10,5 @@ try {
910
})
1011
}
1112
}catch(error){
12-
console.log(`Error in Sentry init:${error.message}`)
13+
logger(`Error in Sentry init:${error.message}`)
1314
}

‎web-app/src/services/state/useStateMachine.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const useStateMachine = (): Output => {
7171

7272
// convert route to a string to avoid unnecessary React re-renders on deeply nested objects
7373
constroute=createRouteString(state.value)
74-
console.log(`STATE:${route}`)
74+
logger(`STATE:"${route}"`)
7575

7676
return{
7777
context:state.context,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp