Browse Source

verify No more logging to /dev/null

Mike Smith 11 years ago
parent
commit
35d24d7904
42 changed files with 42 additions and 42 deletions
  1. 1 1
      aspnet/nginx.conf
  2. 1 1
      cake/deploy/nginx.conf
  3. 1 1
      config/nginx_uwsgi.conf
  4. 1 1
      dancer/nginx.conf
  5. 1 1
      dart-start/setup.py
  6. 1 1
      dart-stream/setup.py
  7. 1 1
      dart/setup.py
  8. 1 1
      jester/config/nginx.conf
  9. 1 1
      kelp/nginx.conf
  10. 1 1
      lapis/nginx.conf
  11. 1 1
      mojolicious/nginx.conf
  12. 1 1
      nancy/nginx.conf
  13. 1 1
      nancy/nginx.conf.libevent
  14. 1 1
      php-codeigniter/deploy/nginx.conf
  15. 1 1
      php-fuel/deploy/nginx.conf
  16. 1 1
      php-fuel/fuel/packages/oil/classes/console.php
  17. 1 1
      php-kohana/deploy/nginx.conf
  18. 1 1
      php-laravel/deploy/nginx.conf
  19. 1 1
      php-lithium/deploy/nginx.conf
  20. 1 1
      php-micromvc/deploy/nginx.conf
  21. 1 1
      php-phalcon-micro/deploy/nginx.conf
  22. 1 1
      php-phalcon/deploy/nginx.conf
  23. 1 1
      php-phpixie/deploy/nginx.conf
  24. 1 1
      php-silex-orm/deploy/nginx.conf
  25. 1 1
      php-silex/deploy/nginx.conf
  26. 1 1
      php-silex/deploy/nginx_raw.conf
  27. 1 1
      php-silex/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php
  28. 1 1
      php-silica/deploy/nginx.conf
  29. 1 1
      php-slim/deploy/nginx.conf
  30. 1 1
      php-symfony2-stripped/deploy/nginx.conf
  31. 1 1
      php-symfony2/deploy/nginx.conf
  32. 1 1
      php-yaf/deploy/nginx.conf
  33. 1 1
      php/deploy/nginx.conf
  34. 1 1
      phreeze/deploy/nginx.conf
  35. 1 1
      rack/config/nginx.conf
  36. 1 1
      racket-ws/setup.py
  37. 1 1
      rails-stripped/config/nginx.conf
  38. 1 1
      rails/config/nginx.conf
  39. 1 1
      servicestack/nginx.conf
  40. 1 1
      sinatra/config/nginx.conf
  41. 1 1
      snap/setup.py
  42. 1 1
      web-simple/nginx.conf

+ 1 - 1
aspnet/nginx.conf

@@ -1,6 +1,6 @@
 # worker_processes n;
 # worker_processes n;
 pid /tmp/nginx.pid;
 pid /tmp/nginx.pid;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
     worker_connections 8192;
     worker_connections 8192;

+ 1 - 1
cake/deploy/nginx.conf

@@ -1,6 +1,6 @@
 #user  nobody;
 #user  nobody;
 worker_processes  8;
 worker_processes  8;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;

+ 1 - 1
config/nginx_uwsgi.conf

@@ -2,7 +2,7 @@
 
 
 # One worker process per core
 # One worker process per core
 worker_processes auto;
 worker_processes auto;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
     # This needed to be increased because the nginx error log said so.
     # This needed to be increased because the nginx error log said so.

+ 1 - 1
dancer/nginx.conf

@@ -1,5 +1,5 @@
 user tfb;
 user tfb;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 worker_processes 2;
 worker_processes 2;
 
 

+ 1 - 1
dart-start/setup.py

@@ -21,7 +21,7 @@ def start(args, logfile, errfile):
     #
     #
     conf = []
     conf = []
     conf.append('worker_processes ' + str(args.max_threads) + ';')
     conf.append('worker_processes ' + str(args.max_threads) + ';')
-    conf.append('error_log /dev/null crit;')
+    conf.append('error_log stderr error;')
     conf.append('events {')
     conf.append('events {')
     conf.append('    worker_connections 1024;')
     conf.append('    worker_connections 1024;')
     conf.append('}')
     conf.append('}')

+ 1 - 1
dart-stream/setup.py

@@ -21,7 +21,7 @@ def start(args, logfile, errfile):
     #
     #
     conf = []
     conf = []
     conf.append('worker_processes ' + str(args.max_threads) + ';')
     conf.append('worker_processes ' + str(args.max_threads) + ';')
-    conf.append('error_log /dev/null crit;')
+    conf.append('error_log stderr error;')
     conf.append('events {')
     conf.append('events {')
     conf.append('    worker_connections 1024;')
     conf.append('    worker_connections 1024;')
     conf.append('}')
     conf.append('}')

+ 1 - 1
dart/setup.py

@@ -20,7 +20,7 @@ def start(args, logfile, errfile):
     #
     #
     conf = []
     conf = []
     conf.append('worker_processes ' + str(args.max_threads) + ';')
     conf.append('worker_processes ' + str(args.max_threads) + ';')
-    conf.append('error_log /dev/null crit;')
+    conf.append('error_log stderr error;')
     conf.append('events {')
     conf.append('events {')
     conf.append('    worker_connections 1024;')
     conf.append('    worker_connections 1024;')
     conf.append('}')
     conf.append('}')

+ 1 - 1
jester/config/nginx.conf

@@ -14,7 +14,7 @@ worker_processes 8;
 # Feel free to change all paths to suite your needs here, of course
 # Feel free to change all paths to suite your needs here, of course
 # pid /tmp/nginx.pid;
 # pid /tmp/nginx.pid;
 #error_log /tmp/nginx.error.log;
 #error_log /tmp/nginx.error.log;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
   worker_connections 4096; # increase if you have lots of clients
   worker_connections 4096; # increase if you have lots of clients

+ 1 - 1
kelp/nginx.conf

@@ -1,5 +1,5 @@
 user tfb;
 user tfb;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 worker_processes 2;
 worker_processes 2;
 
 

+ 1 - 1
lapis/nginx.conf

@@ -1,6 +1,6 @@
 #worker_processes  1;
 #worker_processes  1;
 pid        /tmp/nginx.pid;
 pid        /tmp/nginx.pid;
-error_log /dev/null crit;
+error_log stderr error;
 #error_log /tmp/test.log error;
 #error_log /tmp/test.log error;
 env LAPIS_ENVIRONMENT;
 env LAPIS_ENVIRONMENT;
 
 

+ 1 - 1
mojolicious/nginx.conf

@@ -1,5 +1,5 @@
 user tfb;
 user tfb;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 worker_processes 2;
 worker_processes 2;
 
 

+ 1 - 1
nancy/nginx.conf

@@ -1,6 +1,6 @@
 # worker_processes n;
 # worker_processes n;
 pid /tmp/nginx.pid;
 pid /tmp/nginx.pid;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
     worker_connections 8192;
     worker_connections 8192;

+ 1 - 1
nancy/nginx.conf.libevent

@@ -1,6 +1,6 @@
 # worker_processes n;
 # worker_processes n;
 pid /tmp/nginx.pid;
 pid /tmp/nginx.pid;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
     worker_connections 8192;
     worker_connections 8192;

+ 1 - 1
php-codeigniter/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-fuel/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-fuel/fuel/packages/oil/classes/console.php

@@ -28,7 +28,7 @@ class Console
 	{
 	{
 		error_reporting(E_ALL | E_STRICT);
 		error_reporting(E_ALL | E_STRICT);
 
 
-		ini_set("error_log", NULL);
+		ini_set("error_log", stderr);
 		ini_set("log_errors", 1);
 		ini_set("log_errors", 1);
 		ini_set("html_errors", 0);
 		ini_set("html_errors", 0);
 		ini_set("display_errors", 0);
 		ini_set("display_errors", 0);

+ 1 - 1
php-kohana/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-laravel/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-lithium/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-micromvc/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-phalcon-micro/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-phalcon/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-phpixie/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-silex-orm/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-silex/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-silex/deploy/nginx_raw.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-silex/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php

@@ -57,7 +57,7 @@ class ExceptionListenerTest extends \PHPUnit_Framework_TestCase
     public function testHandleWithoutLogger($event, $event2)
     public function testHandleWithoutLogger($event, $event2)
     {
     {
         // store the current error_log, and disable it temporarily
         // store the current error_log, and disable it temporarily
-        $errorLog = ini_set('error_log', file_exists('/dev/null') ? '/dev/null' : 'nul');
+        $errorLog = ini_set('error_log', file_exists('stderr') ? 'stderr' : 'stderr');
 
 
         $l = new ExceptionListener('foo');
         $l = new ExceptionListener('foo');
         $l->onKernelException($event);
         $l->onKernelException($event);

+ 1 - 1
php-silica/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-slim/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-symfony2-stripped/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-symfony2/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
php-yaf/deploy/nginx.conf

@@ -1,5 +1,5 @@
 worker_processes  8;
 worker_processes  8;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
     worker_connections  1024;
     worker_connections  1024;

+ 1 - 1
php/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
phreeze/deploy/nginx.conf

@@ -4,7 +4,7 @@ worker_processes  8;
 #error_log  logs/error.log;
 #error_log  logs/error.log;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  notice;
 #error_log  logs/error.log  info;
 #error_log  logs/error.log  info;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 #pid        logs/nginx.pid;
 #pid        logs/nginx.pid;
 
 

+ 1 - 1
rack/config/nginx.conf

@@ -26,7 +26,7 @@ worker_processes 8;
 # Feel free to change all paths to suite your needs here, of course
 # Feel free to change all paths to suite your needs here, of course
 # pid /tmp/nginx.pid;
 # pid /tmp/nginx.pid;
 #error_log /tmp/nginx.error.log;
 #error_log /tmp/nginx.error.log;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
   worker_connections 4096; # increase if you have lots of clients
   worker_connections 4096; # increase if you have lots of clients

+ 1 - 1
racket-ws/setup.py

@@ -7,7 +7,7 @@ import os
 def start(args, logfile, errfile):
 def start(args, logfile, errfile):
   db_host = args.database_host
   db_host = args.database_host
   threads = str(args.max_threads)
   threads = str(args.max_threads)
-  subprocess.Popen("racket -t bench.rkt -- " + db_host + " > /dev/null", shell=True, cwd="racket-ws/bench", stderr=errfile, stdout=logfile)
+  subprocess.Popen("racket -t bench.rkt -- " + db_host, shell=True, cwd="racket-ws/bench", stderr=errfile, stdout=logfile)
   return 0
   return 0
 
 
 def stop(logfile, errfile):
 def stop(logfile, errfile):

+ 1 - 1
rails-stripped/config/nginx.conf

@@ -26,7 +26,7 @@ worker_processes 8;
 # Feel free to change all paths to suite your needs here, of course
 # Feel free to change all paths to suite your needs here, of course
 # pid /tmp/nginx.pid;
 # pid /tmp/nginx.pid;
 #error_log /tmp/nginx.error.log;
 #error_log /tmp/nginx.error.log;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
   worker_connections 4096; # increase if you have lots of clients
   worker_connections 4096; # increase if you have lots of clients

+ 1 - 1
rails/config/nginx.conf

@@ -26,7 +26,7 @@ worker_processes 8;
 # Feel free to change all paths to suite your needs here, of course
 # Feel free to change all paths to suite your needs here, of course
 # pid /tmp/nginx.pid;
 # pid /tmp/nginx.pid;
 #error_log /tmp/nginx.error.log;
 #error_log /tmp/nginx.error.log;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
   worker_connections 4096; # increase if you have lots of clients
   worker_connections 4096; # increase if you have lots of clients

+ 1 - 1
servicestack/nginx.conf

@@ -1,6 +1,6 @@
 # worker_processes n;
 # worker_processes n;
 pid /tmp/nginx.pid;
 pid /tmp/nginx.pid;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
     worker_connections 8192;
     worker_connections 8192;

+ 1 - 1
sinatra/config/nginx.conf

@@ -26,7 +26,7 @@ worker_processes 8;
 # Feel free to change all paths to suite your needs here, of course
 # Feel free to change all paths to suite your needs here, of course
 # pid /tmp/nginx.pid;
 # pid /tmp/nginx.pid;
 #error_log /tmp/nginx.error.log;
 #error_log /tmp/nginx.error.log;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 events {
 events {
   worker_connections 4096; # increase if you have lots of clients
   worker_connections 4096; # increase if you have lots of clients

+ 1 - 1
snap/setup.py

@@ -10,7 +10,7 @@ def start(args, logfile, errfile):
   subprocess.check_call("cabal configure", shell=True, cwd="snap/bench", stderr=errfile, stdout=logfile)
   subprocess.check_call("cabal configure", shell=True, cwd="snap/bench", stderr=errfile, stdout=logfile)
   subprocess.check_call("cabal build", shell=True, cwd="snap/bench", stderr=errfile, stdout=logfile)
   subprocess.check_call("cabal build", shell=True, cwd="snap/bench", stderr=errfile, stdout=logfile)
 
 
-  subprocess.Popen("dist/build/snap-bench/snap-bench +RTS -A4M -N -qg2 -I0 -G2 > /dev/null", shell=True, cwd="snap/bench", stderr=errfile, stdout=logfile)
+  subprocess.Popen("dist/build/snap-bench/snap-bench +RTS -A4M -N -qg2 -I0 -G2", shell=True, cwd="snap/bench", stderr=errfile, stdout=logfile)
   return 0
   return 0
 
 
 def stop(logfile, errfile):
 def stop(logfile, errfile):

+ 1 - 1
web-simple/nginx.conf

@@ -1,5 +1,5 @@
 user tfb;
 user tfb;
-error_log /dev/null crit;
+error_log stderr error;
 
 
 worker_processes 2;
 worker_processes 2;