opencog server silently exits when its log file reaches a size limit

Bug #365508 reported by Welter
8
Affects Status Importance Assigned to Milestone
OpenCog
New
Undecided
Unassigned

Bug Description

[bug copied from Petaverse's bugzilla]

There is a limit of 2G bytes (exactly 2147483647 bytes), which is probably a
system limit, for the size of the log file generated by opencog::Logger.
When this limit is reached, the process simply exits without any error message.
The size of log files should be controlled somehow (circular logs or to save
logs each day/hour) so that opencog servers do not exit this way anymore.

------- Comment #1 From Welter 2008-01-10 16:24:31 [reply] -------

After googling a bit on this issue, I found 2 solutions:

1) Quick and dirt solution: to use the -D_FILE_OFFSET_BITS=64 compilation flag
in order to increase such limit.

2) Probably much better idea: to use syslog for generate the log files
(although this may be a linux-specific solution)

I didn't try any of them yet though.

------- Comment #2 From Andre 2008-01-10 17:44:20 [reply] -------

3) Change debug messages to avoid things like long XML dumps and use proper log
levels to execute longer tests (long XML dumps may be necessary but they should
go under FINE level, which is not supposed to be used to execute long tests)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.