Skip to content

Commit

Permalink
Always reset repetitions counter
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 11, 2020
1 parent e0ba865 commit 3ee5447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/server/log.h
Expand Up @@ -477,10 +477,10 @@ do {\
(_entry)->last_complained = (_entry)->now;\
if (((_entry)->repeated > 0) && (((_entry)->now - (_entry)->last_complained) == 1)) { \
_log(_fmt " - repeated %u time(s)", ##__VA_ARGS__, (_entry)->repeated); \
(_entry)->repeated = 0; \
} else { \
_log(_fmt, ##__VA_ARGS__); \
}\
(_entry)->repeated = 0; \
} else { \
(_entry)->repeated++; \
} \
Expand Down Expand Up @@ -514,10 +514,10 @@ do {\
(_entry)->last_complained = (_entry)->now;\
if (((_entry)->repeated > 0) && (((_entry)->now - (_entry)->last_complained) == 1)) { \
ROPTIONAL(_l_request, _l_global, _fmt " - repeated %u time(s)", ##__VA_ARGS__, (_entry)->repeated); \
(_entry)->repeated = 0; \
} else { \
ROPTIONAL(_l_request, _l_global, _fmt, ##__VA_ARGS__); \
}\
(_entry)->repeated = 0; \
} else { \
(_entry)->repeated++; \
} \
Expand Down

0 comments on commit 3ee5447

Please sign in to comment.