Opened 9 years ago
Closed 9 years ago
#4092 closed defect (fixed)
AC - missing new line in logs.
Reported by: | khimtiki | Owned by: | |
---|---|---|---|
Priority: | major | Component: | General |
Severity: | Please fill in | Keywords: | |
Cc: | Sensitive: | no |
Description
OSCam doesn't log with new line (anticasc).
Please take a look in attachment.
Attachments (3)
Change History (11)
by , 9 years ago
comment:1 by , 9 years ago
comment:2 by , 9 years ago
After looking at this closely, this is the correct solution, so I commited in r10341. Please this or later revision and close the ticket if it works.
by , 9 years ago
Attachment: | logs_2.txt added |
---|
comment:4 by , 9 years ago
The whole ac_log is a mess. Anyway try this:
diff --git a/oscam-log.c b/oscam-log.c index d62c34e..f1e5aa6 100644 --- a/oscam-log.c +++ b/oscam-log.c @@ -305,7 +305,7 @@ static void write_to_log(char *txt, struct s_log *log, int8_ (void)log; // Prevent warning when WEBIF, MODULE_MONITOR and CS_ANTICASC are // anticascading messages go to their own log - if (!anticasc_logging(txt + log->header_len)) + if (!anticasc_logging(txt + 8)) { if(cfg.logtosyslog) { syslog(LOG_INFO, "%s", txt + 29); }
comment:5 by , 9 years ago
Fix commited in r10343. I don't how know ac_log looked before. Now you'll have full time stamp which is useful.
comment:6 by , 9 years ago
I've pasted in first logs.txt how it looked. Anyway, still wrong. Take a look for new logs_3.txt for more details.
by , 9 years ago
Attachment: | logs_3.txt added |
---|
comment:8 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
r10346 fixed ac logs format :)
Thanks @gf!
Note:
See TracTickets
for help on using tickets.
Can you try this, just move strcat outside of the brackets.