Fix logging of error messages on Windows

Bug #1792521 reported by GunChleoc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Medium
Unassigned

Bug Description

STDERR gets lost in windows, error messages are neither printed to console nor to the stdout.txt.

Follow-up from https://bugs.launchpad.net/widelands/+bug/1398536

Tags: windows
GunChleoc (gunchleoc)
summary: - Fix logging of error messges on WIndows
+ Fix logging of error messages on Windows
Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Hmm, there is another aspect of sending this to the Homedir:
> Log output will be written to: C:\Users\klaus\.widelands\stdout.txt

I wanted to debug smugglers and stated two widelands instances.
To make one write to some other File I tried to use:

> ./widelands.exe --homedir=/mnt/d/develop/wldev/3772-1/home/
# From Linux Subystem on Win 10

> D:\develop\wldev\3772-1>widelands.exe --homedir=D:\develop\wldev\3772-1\home
# From Windows cmd

but both give me an assertion
File: src/base/log.cc, Line 151
Expression: logger != nullptr

So how can I check the logs of both instances now?

Revision history for this message
GunChleoc (gunchleoc) wrote :

If there is no stdout.txt in those directories, you can't. Please open a separate bug for it and target it to Build 20, because tis bug is about the rerouting of stderr, and your bug is about stdout.

You'll have to do your debugging with the standard homedir for now.

Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.