1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Replacing console.error with loggerinstance.error

This commit is contained in:
Jamie Hewitt 2022-11-16 18:08:59 +03:00
parent 105343435c
commit 2265d750a5
2 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import styles from './MetaFull.module.css'
import Publisher from '@shared/Publisher' import Publisher from '@shared/Publisher'
import { useAsset } from '@context/Asset' import { useAsset } from '@context/Asset'
import { useWeb3 } from '@context/Web3' import { useWeb3 } from '@context/Web3'
import { Asset, Datatoken } from '@oceanprotocol/lib' import { Asset, Datatoken, LoggerInstance } from '@oceanprotocol/lib'
export default function MetaFull({ ddo }: { ddo: Asset }): ReactElement { export default function MetaFull({ ddo }: { ddo: Asset }): ReactElement {
const [paymentCollector, setPaymentCollector] = useState<string>() const [paymentCollector, setPaymentCollector] = useState<string>()
@ -21,7 +21,7 @@ export default function MetaFull({ ddo }: { ddo: Asset }): ReactElement {
) )
setPaymentCollector(paymentCollector) setPaymentCollector(paymentCollector)
} catch (error) { } catch (error) {
console.error(error) LoggerInstance.error('[MetaFull: getInitialPaymentCollector]', error)
} }
} }
getInitialPaymentCollector() getInitialPaymentCollector()

View File

@ -52,7 +52,10 @@ export default function Edit({
) )
setPaymentCollector(paymentCollector) setPaymentCollector(paymentCollector)
} catch (error) { } catch (error) {
console.error(error) LoggerInstance.error(
'[EditMetadata: getInitialPaymentCollector]',
error
)
} }
} }
getInitialPaymentCollector() getInitialPaymentCollector()