Re: [PATCH] Added debug filtering to avoid debugger to start when using in production

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2016-09-05 at 10:48 +0200, Oliver Gutierrez wrote:

Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>

> ---
>  spiceconn.js | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/spiceconn.js b/spiceconn.js
> index 903f3b0..5123e04 100644
> --- a/spiceconn.js
> +++ b/spiceconn.js
> @@ -23,7 +23,7 @@
>  **      This is the base Javascript class for establishing and
>  **  managing a connection to a Spice Server.
>  **  It is used to provide core functionality to the Spice main,
> -**  display, inputs, and cursor channels.  See main.js for 
> +**  display, inputs, and cursor channels.  See main.js for
>  **  usage.
>  **-----------------------------------------------------------------
> ---------*/
>  function SpiceConn(o)
> @@ -185,8 +185,8 @@ SpiceConn.prototype =
>  
>                  if (msg.type > 500)
>                  {
> -                    alert("Something has gone very wrong; we think
> we have message of type " + msg.type);
> -                    debugger;
> +                    DEBUG > 0 && alert("Something has gone very
> wrong; we think we have message of type " + msg.type);
> +                    DEBUG > 0 && debugger;
>                  }
>  
>                  if (msg.size == 0)
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]