Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haohanyang committed Jan 6, 2025
1 parent 394dbd9 commit 5dacdfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export const Logger = {
log: (name: string, component: string, ...args: any[]) => {
console.log(name, component, args);
if (process.env.NODE_ENV === 'development') {
console.log(name, component, args)
}
},

debug: (name: string, component: string, ...args: any[]) => {
if (process.env.NODE_ENV === "development") {
if (process.env.NODE_ENV === 'development') {
console.log(name, component, args);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/telemetry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const Telemetry = {
track: (event: string, properties: any) => {
if (process.env.NODE_ENV === "development") {
if (process.env.NODE_ENV === 'development') {
console.log(event, properties);
}
},
Expand Down

0 comments on commit 5dacdfd

Please sign in to comment.