Skip to content

Commit

Permalink
drops logzero
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <[email protected]>
  • Loading branch information
Lawouach committed Apr 10, 2024
1 parent bc523d0 commit 4a5a11b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

[5]: https://github.com/chaostoolkit-incubator/chaostoolkit-service-fabric/issues/5

### Changed

* Drops logzero as new Chaos Toolkit lib now directly exposes a logger

## [0.2.0][]

[0.2.0]: https://github.com/chaostoolkit-incubator/chaostoolkit-service-fabric/compare/0.1.0...0.2.0
Expand Down
3 changes: 2 additions & 1 deletion chaosservicefabric/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""Top-level package for chaostoolkit-service-fabric."""
import configparser
import contextlib
import logging
import os
import tempfile
from typing import List
Expand All @@ -19,12 +20,12 @@
Discovery,
Secrets,
)
from logzero import logger

from chaosservicefabric.types import ServiceFabricAuth

__all__ = ["auth", "discover", "__version__"]
__version__ = "0.2.0"
logger = logging.getLogger("chaostoolkit")


@contextlib.contextmanager
Expand Down
3 changes: 2 additions & 1 deletion chaosservicefabric/cluster/actions.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# -*- coding: utf-8 -*-
import json
import logging
from typing import Any, Dict

import requests
from chaoslib.exceptions import FailedActivity
from chaoslib.types import Configuration, Secrets
from logzero import logger

from chaosservicefabric import auth
from chaosservicefabric.types import ChaosParameters

__all__ = ["start_chaos", "stop_chaos"]
logger = logging.getLogger("chaostoolkit")


def start_chaos(
Expand Down
3 changes: 2 additions & 1 deletion chaosservicefabric/cluster/probes.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# -*- coding: utf-8 -*-
import json
import logging
from datetime import datetime, timezone
from typing import Any, Dict

import dateparser
import requests
from chaoslib.exceptions import FailedActivity
from chaoslib.types import Configuration, Secrets
from logzero import logger

from chaosservicefabric import auth

__all__ = ["chaos_report"]
logger = logging.getLogger("chaostoolkit")


def chaos_report(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
chaostoolkit-lib>=1.1.0
chaostoolkit-lib>=1.42.1
dateparser
requests

0 comments on commit 4a5a11b

Please sign in to comment.