Skip to content

Commit

Permalink
chore: update log level (#887)
Browse files Browse the repository at this point in the history
* chore: update log level
  • Loading branch information
ajasnosz authored Oct 10, 2023
1 parent a325dda commit 866f276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Changed
- add regex and option to negate conditional profiles search
- downgrade of some log messages from warning to info

### Fixed
- empty profile name when MIB family name and a polled varbind differs
Expand Down
6 changes: 3 additions & 3 deletions splunk_connect_for_snmp/inventory/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ def assign_profiles(ir, profiles, target):
profile = profiles[profile_name]
if "condition" in profile:
if profile["condition"].get("type") == "walk":
logger.warning(
logger.info(
f"profile {profile_name} is a walk profile, it cannot be used as a static profile"
)
continue
logger.warning(
logger.info(
f"profile {profile_name} is a smart profile, it does not need to be configured as a static one"
)
elif "conditions" in profile:
Expand Down Expand Up @@ -240,7 +240,7 @@ def is_smart_profile_valid(profile_name, profile):
return False

if "frequency" not in profile:
logger.warning(f"Profile {profile_name} has no frequency")
logger.info(f"Profile {profile_name} has no frequency")
return False

if "condition" not in profile:
Expand Down

0 comments on commit 866f276

Please sign in to comment.