packages/logger/lib/serializers.js
function getCleanUrl (url) {
  try {
    const parsed = new URL(url)
    return parsed.pathname || url
  } catch (err) {
    return url
  }
}
function getCleanUrl (url) {
  try {
    const parsed = new URL(url)
    return parsed.pathname || url
  } catch (err) {
    return url
  }
}
function getCleanUrl ( url ) { try { const parsed = new URL ( url ) return parsed . pathname || url } catch ( err ) { return url } }
Returns the pathname part of the given url

@param  {String} url

@return {String}
Returns the pathname part of the given url