tor.cgi: Disable debugging output

Message ID 20190526150256.19447-1-ummeegge@ipfire.org
State Accepted
Commit ac2fdbb15efa305b4a7f462ea37abc1448f6d069
Headers
Series tor.cgi: Disable debugging output |

Commit Message

ummeegge May 27, 2019, 1:02 a.m. UTC
  Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
---
 html/cgi-bin/tor.cgi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Michael Tremer May 27, 2019, 2:17 a.m. UTC | #1
Cool. Does that silence all the messages?

> On 26 May 2019, at 16:02, Erik Kapfer <ummeegge@ipfire.org> wrote:
> 
> Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
> ---
> html/cgi-bin/tor.cgi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
> index 71da66666..d31eb1086 100644
> --- a/html/cgi-bin/tor.cgi
> +++ b/html/cgi-bin/tor.cgi
> @@ -23,8 +23,8 @@ use strict;
> use Locale::Codes::Country;
> 
> # enable only the following on debugging purpose
> -use warnings;
> -use CGI::Carp 'fatalsToBrowser';
> +#use warnings;
> +#use CGI::Carp 'fatalsToBrowser';
> 
> require '/var/ipfire/general-functions.pl';
> require "${General::swroot}/geoip-functions.pl";
> -- 
> 2.12.2
>
  
ummeegge May 27, 2019, 2:25 a.m. UTC | #2
Hi Michael,

On So, 2019-05-26 at 17:17 +0100, Michael Tremer wrote:
> Cool. Does that silence all the messages?
Yes.

> 
> > On 26 May 2019, at 16:02, Erik Kapfer <ummeegge@ipfire.org> wrote:
> > 
> > Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
> > ---
> > html/cgi-bin/tor.cgi | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
> > index 71da66666..d31eb1086 100644
> > --- a/html/cgi-bin/tor.cgi
> > +++ b/html/cgi-bin/tor.cgi
> > @@ -23,8 +23,8 @@ use strict;
> > use Locale::Codes::Country;
> > 
> > # enable only the following on debugging purpose
> > -use warnings;
> > -use CGI::Carp 'fatalsToBrowser';
> > +#use warnings;
> > +#use CGI::Carp 'fatalsToBrowser';
> > 
> > require '/var/ipfire/general-functions.pl';
> > require "${General::swroot}/geoip-functions.pl";
> > -- 
> > 2.12.2
> >
  

Patch

diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
index 71da66666..d31eb1086 100644
--- a/html/cgi-bin/tor.cgi
+++ b/html/cgi-bin/tor.cgi
@@ -23,8 +23,8 @@  use strict;
 use Locale::Codes::Country;
 
 # enable only the following on debugging purpose
-use warnings;
-use CGI::Carp 'fatalsToBrowser';
+#use warnings;
+#use CGI::Carp 'fatalsToBrowser';
 
 require '/var/ipfire/general-functions.pl';
 require "${General::swroot}/geoip-functions.pl";