GNOME Bugzilla – Bug 692284
Add --no-color option to suppress color output
Last modified: 2013-01-22 13:21:54 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.
Created attachment 234098 [details] [review] Add --no-color option to suppress color output
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 on attachment 234098 [details] [review] Add --no-color option to suppress color output Thanks for the patch!