Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "cosl"
version = "0.0.57"
version = "0.0.58"
authors = [
{ name = "sed-i", email = "[email protected]" },
]
Expand Down
5 changes: 4 additions & 1 deletion src/cosl/cos_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ def inject_label_matchers(

def _get_tool_path(self) -> Optional[Path]:
arch = platform.machine()
arch = "amd64" if arch == "x86_64" else arch
if arch == "x86_64":
arch = "amd64"
elif arch == "aarch64":
arch = "arm64"
res = "cos-tool-{}".format(arch)
try:
path = Path(res).resolve(strict=True)
Expand Down
4 changes: 1 addition & 3 deletions src/cosl/loki_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def build_labels(self, record: logging.LogRecord) -> Dict[str, str]:
if not isinstance(extra_labels, dict):
return labels

label_name: Any
label_value: Any
for label_name, label_value in extra_labels.items():
for label_name, label_value in extra_labels.items(): # type: ignore
if not isinstance(label_name, str) or not isinstance(label_value, str):
return labels

Expand Down
Loading