After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692284 - Add --no-color option to suppress color output
Add --no-color option to suppress color output
Status: RESOLVED FIXED
Product: gnome-online-accounts
Classification: Core
Component: Kerberos
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-01-22 12:12 UTC by Stef Walter
Modified: 2013-01-22 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add --no-color option to suppress color output (2.59 KB, patch)
2013-01-22 12:12 UTC, Stef Walter
committed Details | Review

Description Stef Walter 2013-01-22 12:12:35 UTC
When debugging goa-daemon and redirecting its output to a non-terminal
window, you get ugly terminal escape codes. Add option to supress this
behavior.
Comment 1 Stef Walter 2013-01-22 12:12:39 UTC
Created attachment 234098 [details] [review]
Add --no-color option to suppress color output
Comment 2 Stef Walter 2013-01-22 12:12:56 UTC
Output ends up looking like:

[1m[33m13:10:11.970:[0m[35m[1m[30211][0m:[36m[1m[INFO]:[0m Connected to the session bus [30m[main.c:56, on_bus_acquired()][0m
[1m[33m13:10:11.970:[0m[35m[1m[30211][0m:[34m[1m[DEBUG]:[0m GoaIdentityService: Connected to session bus [30m[goaidentityservice.c:1681, on_session_bus_acquired()][0m
[1m[33m13:10:11.972:[0m[35m[1m[30211][0m:[36m[1m[INFO]:[0m Acquired the name org.gnome.OnlineAccounts on the session message bus [30m[main.c:73, on_name_acquired()][0m
[1m[33m13:10:11.974:[0m[35m[1m[30211][0m:[34m[1m[DEBUG]:[0m GoaIdentityService: Acquired name org.gnome.Identity [30m[goaidentityservice.c:1703, on_name_acquired()][0m
[1m[33m13:10:11.980:[0m[35m[1m[30219][0m:[34m[1m[DEBUG]:[0m GoaKerberosIdentityManager: Refreshing identities [30m[goakerberosidentitymanager.c:528, refresh_identities()][0m
[1m[33m13:10:11.981:[0m[35m[1m[30219][0m:[34m[1m[DEBUG]:[0m GoaKerberosIdentityManager: Waiting for next operation [30m[goakerberosidentitymanager.c:1047, on_job_scheduled()][0m
[1m[33m13:10:11.981:[0m[35m[1m[30219][0m:[34m[1m[DEBUG]:[0m GoaKerberosIdentityManager: Listing identities [30m[goakerberosidentitymanager.c:604, list_identities()][0m
[1m[33m13:10:11.981:[0m[35m[1m[30219][0m:[34m[1m[DEBUG]:[0m GoaKerberosIdentityManager:         Blocking until identities list processed [30m[goakerberosidentitymanager.c:1011, on_job_scheduled()][0m
[1m[33m13:10:11.981:[0m[35m[1m[30219][0m:[34m[1m[DEBUG]:[0m GoaKerberosIdentityManager:         Continuing [30m[goakerberosidentitymanager.c:1015, on_job_scheduled()][0m
[1m[33m13:10:11.981:[0m[35m[1m[30219][0m:[34m[1m[DEBUG]:[0m GoaKerberosIdentityManager: Waiting for next operation [30m[goakerberosidentitymanager.c:1047, on_job_scheduled()][0m
Comment 3 Debarshi Ray 2013-01-22 13:21:43 UTC
Comment on attachment 234098 [details] [review]
Add --no-color option to suppress color output

Thanks for the patch!