Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI Build and Test

on:
push:
branches: [ main, '+([0-9])\.+([0-9])\.x-maintenance', '+([0-9])\.+([0-9])-rc' ]
branches: [ main, develop, '+([0-9])\.+([0-9])\.x-maintenance', '+([0-9])\.+([0-9])-rc' ]
pull_request:
branches: [ main, '+([0-9])\.+([0-9])\.x-maintenance', '+([0-9])\.+([0-9])-rc' ]
branches: [ main, develop, '+([0-9])\.+([0-9])\.x-maintenance', '+([0-9])\.+([0-9])-rc' ]
Comment thread
swethasukumarr marked this conversation as resolved.
Comment thread
swethasukumarr marked this conversation as resolved.
workflow_dispatch:
inputs:
protocol:
Expand Down
11 changes: 2 additions & 9 deletions src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <cstdarg>
#include <cstring>
#include <ctime>
#include <filesystem>
#include <map>
#include <stdio.h>
#include <sys/time.h>
Expand Down Expand Up @@ -120,15 +121,7 @@ void Logger::log(LogLevel logLevel, const std::string& module, const std::string
std::string fileName;
if (formatter_addLocation)
{
fileName = strrchr(file.c_str(), '/');
if (fileName.empty())
{
fileName = file;
}
else
{
fileName = fileName.substr(1);
}
fileName = std::filesystem::path(file).filename().string();
}

#pragma GCC diagnostic push
Expand Down
Loading
Loading