diff --git a/src/charm.py b/src/charm.py index 0c0ad4fa9a..89d73e360e 100755 --- a/src/charm.py +++ b/src/charm.py @@ -33,7 +33,7 @@ from charms.data_platform_libs.v0.data_interfaces import DataPeerData, DataPeerUnitData from charms.data_platform_libs.v0.data_models import TypedCharmBase from charms.grafana_k8s.v0.grafana_dashboard import GrafanaDashboardProvider -from charms.loki_k8s.v1.loki_push_api import LogForwarder, LogProxyConsumer +from charms.loki_k8s.v1.loki_push_api import LogProxyConsumer from charms.observability_libs.v1.kubernetes_service_patch import KubernetesServicePatch from charms.postgresql_k8s.v0.postgresql import ( REQUIRED_PLUGINS, @@ -236,17 +236,10 @@ def __init__(self, *args): refresh_event=[self.on.start], jobs=self._generate_metrics_jobs(self.is_tls_enabled), ) - self.loki_push = ( - LogForwarder( - self, - relation_name="logging", - ) - if self._pebble_log_forwarding_supported - else LogProxyConsumer( - self, - logs_scheme={"postgresql": {"log-files": POSTGRES_LOG_FILES}}, - relation_name="logging", - ) + self.loki_push = LogProxyConsumer( + self, + logs_scheme={"postgresql": {"log-files": POSTGRES_LOG_FILES}}, + relation_name="logging", ) postgresql_db_port = ServicePort(5432, name="database")