Skip to content

Commit

Permalink
Demote "Attempted to both enable and disable" message to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Jun 26, 2024
1 parent 4ba0ec3 commit 5f0f584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def process():
intersection = services_to_enable.intersection(services_to_disable)
for service in intersection:
msg = 'Attempted to both enable and disable systemd service "{}", service will be disabled.'.format(service)
api.current_logger().error(msg)
api.current_logger().warning(msg)

for service in services_to_enable:
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def test_enable_disable_conflict_logged(monkeypatch):

expect_msg = ('Attempted to both enable and disable systemd service "hello.service",'
' service will be disabled.')
assert expect_msg in api.current_logger.errmsg
assert expect_msg in api.current_logger.warnmsg

0 comments on commit 5f0f584

Please sign in to comment.