EasyCwmp - easycwmp
View Issue Details
0000039easycwmp[All Projects] Enhancementpublic2015-02-25 05:532015-03-16 10:58
tomdjpn 
mohamed.kallel 
normalminoralways
resolvedfixed 
0000039: Ability to reduce the amount of logging by easycwmpd
Easycwmpd writes to syslog quite excessively.
Building without --enable-debug and --enable-devel doesn't seem to make much (any?) difference.

It would be good to be able to specify a config option to reduce the amount of logging to just errors, for example. Particularly for embedded devices with limited storage or limited write cycles.

For example, everything except L_CRIT and L_WARNING could be suppressed with a simple check in log_message (log.c)
No tags attached.
Issue History
2015-02-25 05:53tomdjpnNew Issue
2015-02-25 16:46mohamed.kallelNote Added: 0000135
2015-02-25 16:47mohamed.kallelSeveritymajor => minor
2015-02-26 01:38tomdjpnNote Added: 0000138
2015-03-16 10:58mohamed.kallelNote Added: 0000147
2015-03-16 10:58mohamed.kallelStatusnew => resolved
2015-03-16 10:58mohamed.kallelResolutionopen => fixed
2015-03-16 10:58mohamed.kallelAssigned To => mohamed.kallel

Notes
(0000135)
mohamed.kallel   
2015-02-25 16:46   
Interesting we will treat this issue as soon as possible.

For the moment, you can change the log_message() function in the log.c file. You can add some check on the priority at the beginning of the function
(0000138)
tomdjpn   
2015-02-26 01:38   
Many thanks. Your quick response is much appreciated
(0000147)
mohamed.kallel   
2015-03-16 10:58   
fixed in the version EasyCwmp-1.1.2