What's new

Any tips on debug logging in Merlin's fork?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

BaudelaireNG

Occasional Visitor
having
Code:
logmessage("watchdog02", "no wathdog, restarting");
in watchdog.c, if I
Code:
killall watchdog
I assume I should see this message in /tmp/syslog.log, but it's not there.
Any tips on general user debugging (logging, seeing internal states) and enabling logging off above example? Especially interested in log debugging rc system

My config is:
Router: Asus-N66U
Firmware: 374.43_2-17BAj9527
Code:
nvram show | grep log:

dhcpd_querylog=1
log_ipaddr=192.168.2.10
log_port=514
webdav_last_login_info=
message_loglevel=7
login_port=80
log_size=256
cron_loglevel=8
debug_logeval=0
log_small=1
jffs2_log=0
debug_logrc=0
log_level=7
vpn_loglevel=3
login_ip_str=192.168.2.10
login_timestamp=37869
ntp_log_x=1
http_autologout=30
size: 56401 bytes (9135 left)
console_loglevel=5
fw_log_x=none
login_ip=168405184
Code:
nvram show | grep debug:

debug_ovrc=0
v2_debug=0
debug_cprintf_file=0
ipv6_debug=0
debug_logeval=0
asus_debug=0
debug_logrc=0
di_debug=0
dw_debug=0
debug_cprintf=0
size: 56401 bytes (9135 left)
vpn_debug=0
debug_abrst=0
 
Have you tried seeing what's dumped to the console port? Open the router case to identity the four pins TX,RX,---,GND. You don't need to connect VCC. Your USB-to-Serial converter should be set for TTL logic level 3.3V.
 
Have you tried seeing what's dumped to the console port? Open the router case to identity the four pins TX,RX,---,GND. You don't need to connect VCC. Your USB-to-Serial converter should be set for TTL logic level 3.3V.
This is something I wish to try at least once in my life, but not with home-critical infrastructure :D, but who knows, Thanks for reminder tho

Works for me:
Code:
Mar 25 18:45:54 watchdog02: no watchdog, restarting
Thanks for confirmation. Now I have this sorted. Changing "Log only messages with prioryty greater than" to "All" fixed it. Yes it was that bad.

Any other info on how to sqeeze even more info out of this soft greatly appreciated.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top