Skip to content

Commit 49da71d

Browse files
authored
Merge pull request #775 from amrayn/develop
Develop
2 parents 1490004 + fa10a79 commit 49da71d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ Please note, date/time is limited to `30` characters at most.
435435
You can also specify your own format specifiers. In order to do that you can use `el::Helpers::installCustomFormatSpecifier`. A perfect example is `%ip_addr` for TCP server application;
436436
437437
```C++
438-
const char* getIp(void) {
438+
const char* getIp(const el::LogMessage*) {
439439
return "192.168.1.1";
440440
}
441441

src/easylogging++.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ void LogFormat::parseFromFormat(const base::type::string_t& userFormat) {
15241524
// For date/time we need to extract user's date format first
15251525
std::size_t dateIndex = std::string::npos;
15261526
if ((dateIndex = formatCopy.find(base::consts::kDateTimeFormatSpecifier)) != std::string::npos) {
1527-
while (dateIndex > 0 && formatCopy[dateIndex - 1] == base::consts::kFormatSpecifierChar) {
1527+
while (dateIndex != std::string::npos && dateIndex > 0 && formatCopy[dateIndex - 1] == base::consts::kFormatSpecifierChar) {
15281528
dateIndex = formatCopy.find(base::consts::kDateTimeFormatSpecifier, dateIndex + 1);
15291529
}
15301530
if (dateIndex != std::string::npos) {

src/easylogging++.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ ELPP_INTERNAL_DEBUGGING_OUT_INFO << ELPP_INTERNAL_DEBUGGING_MSG(internalInfoStre
210210
# define ELPP_INTERNAL_INFO(lvl, msg)
211211
#endif // (defined(ELPP_DEBUG_INFO))
212212
#if (defined(ELPP_FEATURE_ALL)) || (defined(ELPP_FEATURE_CRASH_LOG))
213-
# if (ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_ANDROID && !ELPP_OS_EMSCRIPTEN && !ELPP_OS_QNX)
213+
# if (ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_CYGWIN && !ELPP_OS_ANDROID && !ELPP_OS_EMSCRIPTEN && !ELPP_OS_QNX)
214214
# define ELPP_STACKTRACE 1
215215
# else
216216
# if ELPP_COMPILER_MSVC

0 commit comments

Comments
 (0)