Merged in feature/wrap-logging (pull request #2511)
Feature/wrap logging * feat: change all logging to go through our own logger function so that we can control log levels * move packages/trpc to using our own logger * merge Approved-by: Linus Flood
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
import { IntlProvider } from "react-intl"
|
||||
|
||||
import { logger } from "@scandic-hotels/common/logger"
|
||||
|
||||
import type { ClientIntlProviderProps } from "@/types/i18n"
|
||||
|
||||
const logged: Record<string, boolean> = {}
|
||||
@@ -29,7 +31,7 @@ export default function ClientIntlProvider({
|
||||
|
||||
if (!logged[msg]) {
|
||||
logged[msg] = true
|
||||
console.warn(err)
|
||||
logger.warn("IntlProvider", err)
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user