Skip to content

Many (small) code mistakes in the book #1

@LAMaglan

Description

@LAMaglan

@giunio-prc There are quite a few code mistakes in the book.

For instance, in Chapter 5: Testing and debugging FastAPI applications, in the subsection Handling logging message, you provide the following code:

import logging
client_logger = logging.getLogger("client.logger")
logger.setLevel(logging.INFO)

The third line is wrong: it should be.

client_logger.setLevel(logging.INFO)

There are many such cases, often in the same subsection, meaning it is not possible to run the FastAPI code properly. Of course you can argue that we can take the code from this repo, but it would be nice to use the code from the book as intended (as the repo has the finalized code from each subsection, i.e. we cannot run things as we go along in the book).

Would be great if these mistakes can at least be addressed in a future edition of the book.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions