src/api/v1/views.py
def log_request(response):
    """
        Return logging info using response as input
    """
    duration = int((time.time() - g.start) * 1000)
    status_code = response.status.split()[0]

    logging.info(
        f"{request.method}\t\t{request.path}\t\t{status_code}\t\t{str(duration).zfill(2)}ms\n"
    )

    return response

        Return logging info using response as input
    
Return logging info using response as input
Return logging info using response as input
def log_request(response):
    duration = int((time.time() - g.start) * 1000)
    status_code = response.status.split()[0]
    logging.info(
        f"{request.method}\t\t{request.path}\t\t{status_code}\t\t{str(duration).zfill(2)}ms\n"
    )
    return response
def log_request ( response ) : duration = int ( ( time . time ( ) - g . start ) * 1000 ) status_code = response . status . split ( ) [ 0 ] logging . info ( f"{request.method}\t\t{request.path}\t\t{status_code}\t\t{str(duration).zfill(2)}ms\n" ) return response
Return logging info using response as input
Return logging info using response as input
"""
        Return logging info using response as input
    """
response