Bug #2512
openCLI: -debug server/client option does not match filename as documented
0%
Description
Running unciv-server or a client with option -debug d:filename matches
filename as encountered by FILE macro.
According to option help description and docs it should match filename as
substring without need to provide exact path or file extension.
Updated log_do_output_for_level_at_location to do case insensitive filename
match.
To reproduce run e.g.:
freeciv-server -l debug.log -d d:daiunit
Documented as:
-d, --debug LEVEL Set debug log level (one of f,e,w,n,v,d, or d:file1,min,max:...)
See also doc/README:Log messages explaining filename match
Files
Updated by Sweet Tea Dorminy 3 days ago
Neat! Minor tweaks: might want to mention it's not only case insensitive filename match but also substring match.
What happens if we specified -d:dai? Would it stop on first match, or grab all the dai messages?
Updated by Frostblade metablaster 2 days ago
- File 0001-CLI-debug-option-does-not-match-filename-as-document.patch 0001-CLI-debug-option-does-not-match-filename-as-document.patch added
Edited commit message to mention this.
If a portion of filename is given like e.g. d:dai the it will handle all dai*.c files