Skip to content

Commit

Permalink
feat(log): change codelocation format to enable jumping
Browse files Browse the repository at this point in the history
  • Loading branch information
mcakircali committed Jun 14, 2024
1 parent 3ee79af commit 563bb08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eckit/log/CodeLocation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 << ")";
Expand Down

0 comments on commit 563bb08

Please sign in to comment.