Project

General

Profile

Actions

Bug #2512

open

CLI: -debug server/client option does not match filename as documented

Added by Frostblade metablaster 3 days ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
11/30/2026
Due date:
% Done:

0%

Estimated time:

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

Actions #1

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?

Actions #2

Updated by Frostblade metablaster 2 days ago

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

Actions

Also available in: Atom PDF