Skip to content

Commit

Permalink
Add lineno to Actions logs, remove testing log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Nov 23, 2023
1 parent cf4aa21 commit 9e24e2a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/hexdoc/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def setup_logging(verbosity: int, ci: bool):
}
if ci:
formats |= {
logging.WARNING: "::warning file={name},title={levelname}::{message}",
logging.ERROR: "::error file={name},title={levelname}::{message}",
logging.WARNING: "::warning file={name},line={lineno},title={levelname}::{message}",
logging.ERROR: "::error file={name},line={lineno},title={levelname}::{message}",
}

handler = StreamHandler()
Expand All @@ -60,12 +60,7 @@ def setup_logging(verbosity: int, ci: bool):
root_logger.addHandler(handler)

logger = logging.getLogger(__name__)
logger.log(TRACE, "trace")
logger.debug("debug")
logger.info("Starting.")
logger.warning("warning")
logger.error("error")
logger.critical("critical")


def verbosity_log_level(verbosity: int) -> int:
Expand Down

0 comments on commit 9e24e2a

Please sign in to comment.