Skip to content

Commit

Permalink
logging-switch (#15)
Browse files Browse the repository at this point in the history
* Update logger level from DEBUG to INFO

This change adjusts the logging level from DEBUG to INFO in the logger setup. It applies to both the logger itself and the console handler, helping to reduce verbosity in log output.

* Update version to 0.1.6 and set default logging to INFO

This commit updates the project version from 0.1.5 to 0.1.6 in `pyproject.toml`. It also modifies the release notes to reflect the new version and changes the default logging level to INFO.
  • Loading branch information
cdot65 authored Oct 15, 2024
1 parent 7462ce7 commit 01d2c42
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion docs/about/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ enhancements, and fixes in each version of the tool.

---

## Version 0.1.4
## Version 0.1.6

**Release Date:** October 15, 2024

### Logging

- **Logging**: Changed logging to INFO by default.

---

## Version 0.1.5

**Release Date:** October 15, 2024

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pan-scm-sdk"
version = "0.1.5"
version = "0.1.6"
description = "Python SDK for Palo Alto Networks Strata Cloud Manager."
authors = ["Calvin Remsburg <[email protected]>"]
license = "Apache 2.0"
Expand Down
4 changes: 2 additions & 2 deletions scm/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def setup_logger(name: str) -> logging.Logger:

"""Set up and return a logger with the given name."""
logger = logging.getLogger(name)
logger.setLevel(logging.DEBUG)
logger.setLevel(logging.INFO)

# Console handler
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
ch.setLevel(logging.INFO)

# Formatter
formatter = logging.Formatter(
Expand Down

0 comments on commit 01d2c42

Please sign in to comment.