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

uvcdat script now will redirect all output appropriately #1623

Merged
merged 4 commits into from
Oct 22, 2015

Conversation

chaosphere2112
Copy link
Contributor

Fixes #1239; parses arguments passed to UV-CDAT, detects where output should be sent, and redirects all stdout and stderr to append at that location (in addition to the standard UV-CDAT logging mechanisms that are already printing at that point). Should fix the issues we've been having with miscellaneous C++ level logging getting dumped to the console (like the annoying Qt modal window non-error).

@aashish24
Copy link
Contributor

@chaosphere2112 as part of this PR could you please add documentation as well? Wiki for now should be good.

@chaosphere2112
Copy link
Contributor Author

@aashish24 Documentation for what? The command line args we accept?

@aashish24
Copy link
Contributor

@aashish24 Documentation for what? The command line args we accept?

Right.

@aashish24
Copy link
Contributor

If it makes sense.

@chaosphere2112
Copy link
Contributor Author

@aashish24 Well, they do get displayed if you do --help, but I can stick that onto the wiki.

@aashish24
Copy link
Contributor

@chaosphere2112 thanks.

@aashish24
Copy link
Contributor

@chaosphere2112 I meant for capture, target etc. as well but sounds like they are shown as well?

redirect=false
fi
;;
--output-std) redirect=false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this mis-aligned?

@aashish24
Copy link
Contributor

@chaosphere2112 looks good to me. I didn't run it myself. Just had one minor question.

@chaosphere2112
Copy link
Contributor Author

Ah, I misunderstood. Added some comments to the script to explain what everything does.

@aashish24
Copy link
Contributor

thanks for taking care of it @chaosphere2112. LGTM 👍

aashish24 added a commit that referenced this pull request Oct 22, 2015
uvcdat script now will redirect all output appropriately
@aashish24 aashish24 merged commit 7761f99 into master Oct 22, 2015
@aashish24 aashish24 deleted the redirect_all branch October 22, 2015 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirect all (i.e. non-Python) application output to log file
2 participants