Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

99
Views
Express Morgan async use

I spent too much time on this, but I don't know if it's possible to do: Make reverse lookup of IP and log it through morgan

Express.use(Morgan(async(tokens, req, res) => {
    async function ip_reverse_lookup(ip) {
        return hostnames = await dns.reverse(ip)
    }
    hostnames = await ip_reverse_lookup(ip)
    return hostnames
}

Now morgan just shows [object Promise] as output in console

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!