Skip to content

Commit

Permalink
Add log for source IP
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Aug 17, 2023
1 parent 64e4e85 commit 0abe854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/block/[version].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const TransactionPage = ({ transaction }: { transaction: Transaction }) => {

export const getServerSideProps: GetServerSideProps = async (ctx) => {
const { version } = ctx.params
console.log('Fetching tx', version)
console.log('Fetching version', version, ctx.req.headers, ctx.req.connection.remoteAddress)
const versionSingle = Array.isArray(version) ? version[0] : version
const { data: transactionRes, status: transactionStatus } =
await getTransactions({
Expand Down

0 comments on commit 0abe854

Please sign in to comment.