From 563bb08118c19631cd7f075b4f98a628c027ed26 Mon Sep 17 00:00:00 2001 From: Metin Cakircali Date: Fri, 14 Jun 2024 19:00:55 +0200 Subject: [PATCH] feat(log): change codelocation format to enable jumping --- src/eckit/log/CodeLocation.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eckit/log/CodeLocation.cc b/src/eckit/log/CodeLocation.cc index 50307561b..f6384ccdc 100644 --- a/src/eckit/log/CodeLocation.cc +++ b/src/eckit/log/CodeLocation.cc @@ -34,8 +34,8 @@ CodeLocation::operator bool() const { void CodeLocation::print(std::ostream& os) const { if (file_) { - os << " (" << file_ << " +" << line_; - if (func_ && ::strlen(func_)) { + os << " (" << file_ << ":" << line_; + if (func_ && ::strlen(func_) > 0) { os << " " << func_; } os << ")";