Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging of error messages on Windows #1081

Closed
bunnybot opened this issue Sep 9, 2019 · 2 comments · Fixed by #5132
Closed

Fix logging of error messages on Windows #1081

bunnybot opened this issue Sep 9, 2019 · 2 comments · Fixed by #5132
Assignees
Labels
windows Compiling and packaging for Microsoft
Milestone

Comments

@bunnybot
Copy link

bunnybot commented Sep 9, 2019

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


Imported from Launchpad using lp2gh.

@bunnybot bunnybot added Medium windows Compiling and packaging for Microsoft labels Sep 9, 2019
@bunnybot
Copy link
Author

bunnybot commented Sep 9, 2019

(by klaus-halfmann)
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?

@bunnybot
Copy link
Author

bunnybot commented Sep 9, 2019

(by gunchleoc)
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.

@bunnybot bunnybot added this to the build21-rc1 milestone Sep 9, 2019
@Noordfrees Noordfrees modified the milestones: build21-rc1, build22-rc1 Apr 14, 2020
@Noordfrees Noordfrees modified the milestones: v1.0, v1.1 Jan 4, 2021
@matthiakl matthiakl self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Compiling and packaging for Microsoft
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants