Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] what is nfa_regexp_run.log ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 100

PostPosted: Tue Mar 27, 2018 2:30 am    Post subject: [SOLVED] what is nfa_regexp_run.log ? Reply with quote

I was doing a backup of my home folder and I just found out five log files inside /home/. One of them is just huge:

Code:

vinicius@reds ~ $ ls -lah *log
-rw-r--r--. 1 root     root     1.1K Mar 21 20:25 bt_regexp_debug.log
-rw-r--r--. 1 root     root      12K Mar 21 20:25 bt_regexp_log.log
-rw-r--r--. 1 vinicius vinicius 429M Mar 26 23:24 nfa_regexp_debug.log
-rw-r--r--. 1 vinicius vinicius 260M Mar 26 23:24 nfa_regexp_dump.log
-rw-r--r--. 1 vinicius vinicius 6.8G Mar 26 23:24 nfa_regexp_run.log


Does anyone knows who produces those files? And why keep them? One of the reasons that I am asking is because apparently they are modified all the time, so any rsync backup will always update them, turning otherwise fast backups into slow ones. Thank you all.


Last edited by vcmota on Wed Apr 11, 2018 2:36 am; edited 1 time in total
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 786
Location: The Village, Portmeirion

PostPosted: Tue Mar 27, 2018 3:07 am    Post subject: Reply with quote

Looks like it comes from vim when built with debug enabled.

src/regexp_nfa.c
Code:
 * Logging of NFA engine
 *
 * The NFA engine can write four log files:
 * - Error log: Contains NFA engine's fatal errors.
 * - Dump log: Contains compiled NFA state machine's information.
 * - Run log: Contains information of matching procedure.
 * - Debug log: Contains detailed information of matching procedure. Can be
 *   disabled by undefining NFA_REGEXP_DEBUG_LOG.
 * The first one can also be used without debug mode.
 * The last three are enabled when compiled as debug mode and individually
 * disabled by commenting them out.
 * The log files can get quite big!
 * Do disable all of this when compiling Vim for debugging, undefine DEBUG in
 * regexp.c
 */
#ifdef DEBUG
# define NFA_REGEXP_ERROR_LOG   "nfa_regexp_error.log"
# define ENABLE_LOG
# define NFA_REGEXP_DUMP_LOG   "nfa_regexp_dump.log"
# define NFA_REGEXP_RUN_LOG   "nfa_regexp_run.log"
# define NFA_REGEXP_DEBUG_LOG   "nfa_regexp_debug.log"
#endif
Back to top
View user's profile Send private message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 100

PostPosted: Tue Mar 27, 2018 11:42 am    Post subject: Reply with quote

Yes, that was it! Thank you skellr!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum