Merge lp:~vikoadi/audience/no-print-debug into lp:~audience-members/audience/trunk

Proposed by Viko Adi Rahmawan
Status: Merged
Approved by: Cody Garver
Approved revision: 551
Merged at revision: 550
Proposed branch: lp:~vikoadi/audience/no-print-debug
Merge into: lp:~audience-members/audience/trunk
Diff against target: 24 lines (+1/-2)
2 files modified
src/Audience.vala (+0/-1)
src/Widgets/PlayerPage.vala (+1/-1)
To merge this branch: bzr merge lp:~vikoadi/audience/no-print-debug
Reviewer Review Type Date Requested Status
Audience Members Pending
Review via email: mp+276342@code.launchpad.net

Commit message

Don't print debug log unless launched with -d flag

Description of the change

dont print debug log if not stated so

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Audience.vala'
2--- src/Audience.vala 2015-09-21 18:26:27 +0000
3+++ src/Audience.vala 2015-11-01 02:48:36 +0000
4@@ -129,7 +129,6 @@
5 public signal void media_volumes_changed ();
6
7 public App () {
8- Granite.Services.Logger.DisplayLevel = Granite.Services.LogLevel.DEBUG;
9
10 Gtk.Settings.get_default ().gtk_application_prefer_dark_theme = true;
11 this.flags |= GLib.ApplicationFlags.HANDLES_OPEN;
12
13=== modified file 'src/Widgets/PlayerPage.vala'
14--- src/Widgets/PlayerPage.vala 2015-09-12 20:11:41 +0000
15+++ src/Widgets/PlayerPage.vala 2015-11-01 02:48:36 +0000
16@@ -493,7 +493,7 @@
17 update_aspect_ratio_timeout = Timeout.add (200, () => {
18 Gtk.Allocation a;
19 clutter.get_allocation (out a);
20- print ("%i %i %i,%i\n", a.x, a.y, (this.get_allocated_width () - this.clutter.get_allocated_width ()) / 2, (this.get_allocated_height () - this.clutter.get_allocated_height ()) / 2);
21+ debug ("%i %i %i,%i\n", a.x, a.y, (this.get_allocated_width () - this.clutter.get_allocated_width ()) / 2, (this.get_allocated_height () - this.clutter.get_allocated_height ()) / 2);
22
23 double width, height;
24 width = clutter.get_allocated_width ();

Subscribers

People subscribed via source and target branches