Browse Source

verify Less logging locally please

Mike Smith 11 years ago
parent
commit
e9a2a8d7de

+ 2 - 2
php-fuel/fuel/app/config/config.php

@@ -108,8 +108,8 @@ return array(
 	 * Fuel::L_INFO
 	 * Fuel::L_INFO
 	 * Fuel::L_ALL
 	 * Fuel::L_ALL
 	 */
 	 */
-	// 'log_threshold'    => Fuel::L_WARNING,
-	// 'log_path'         => APPPATH.'logs/',
+	 'log_threshold'    => Fuel::L_ERROR,
+	 'log_path'         => 'stderr',
 	// 'log_date_format'  => 'Y-m-d H:i:s',
 	// 'log_date_format'  => 'Y-m-d H:i:s',
 
 
 	/**
 	/**

+ 0 - 3
php-fuel/fuel/app/logs/2013/01/20.php

@@ -1,3 +0,0 @@
-<?php defined('COREPATH') or exit('No direct script access allowed'); ?>
-
-ERROR - 2013-01-20 14:56:15 --> Error - Call to undefined function Oil\bool() in /data/www/fuelphp/1.5/develop/fuel/packages/oil/classes/generate.php on line 682

+ 0 - 52
php-fuel/fuel/app/logs/2013/04/12.php

@@ -1,52 +0,0 @@
-<?php defined('COREPATH') or exit('No direct script access allowed'); ?>
-
-WARNING - 2013-04-12 09:01:16 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:01:45 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:01:54 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:02:35 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:03:36 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:03:49 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:04:55 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:05:04 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:07:12 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:07:19 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:07:53 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:07:53 --> Error - Class 'Orm\Model' not found in C:\xampp\htdocs\php-bench\fuel\app\classes\model\world.php on line 4
-WARNING - 2013-04-12 09:26:26 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:26:26 --> Error - Call to undefined method Model_World::find() in C:\xampp\htdocs\php-bench\fuel\app\classes\controller\bench.php on line 20
-WARNING - 2013-04-12 09:27:46 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:27:46 --> Error - Class 'model\Orm\Model' not found in C:\xampp\htdocs\php-bench\fuel\app\classes\model\world.php on line 6
-WARNING - 2013-04-12 09:29:15 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:29:15 --> Error - Class 'Orm\Model' not found in C:\xampp\htdocs\php-bench\fuel\app\classes\model\world.php on line 4
-WARNING - 2013-04-12 09:29:51 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:29:51 --> Error - Call to undefined method Model_World::find() in C:\xampp\htdocs\php-bench\fuel\app\classes\controller\bench.php on line 20
-WARNING - 2013-04-12 09:33:03 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:33:05 --> 2002 - SQLSTATE[HY000] [2002] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.
- in C:\xampp\htdocs\php-bench\fuel\core\classes\database\pdo\connection.php on line 94
-WARNING - 2013-04-12 09:34:23 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:34:23 --> Error - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hello_world.myarticles' doesn't exist with query: "SELECT `t0`.`id` AS `t0_c0`, `t0`.`randomNumber` AS `t0_c1` FROM `myarticles` AS `t0` WHERE `t0`.`id` = 720 LIMIT 1" in C:\xampp\htdocs\php-bench\fuel\core\classes\database\pdo\connection.php on line 175
-WARNING - 2013-04-12 09:34:49 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:34:51 --> 2002 - SQLSTATE[HY000] [2002] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.
- in C:\xampp\htdocs\php-bench\fuel\core\classes\database\pdo\connection.php on line 94
-WARNING - 2013-04-12 09:35:30 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:35:30 --> Error - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hello_world.myarticles' doesn't exist with query: "SELECT `t0`.`id` AS `t0_c0`, `t0`.`randomNumber` AS `t0_c1` FROM `myarticles` AS `t0` WHERE `t0`.`id` = 7936 LIMIT 1" in C:\xampp\htdocs\php-bench\fuel\core\classes\database\pdo\connection.php on line 175
-WARNING - 2013-04-12 09:35:56 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:36:12 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 09:36:12 --> Error - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hello_world.world' doesn't exist with query: "SELECT `t0`.`id` AS `t0_c0`, `t0`.`randomNumber` AS `t0_c1` FROM `world` AS `t0` WHERE `t0`.`id` = 325 LIMIT 1" in C:\xampp\htdocs\php-bench\fuel\core\classes\database\pdo\connection.php on line 175
-WARNING - 2013-04-12 09:36:31 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:38:37 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:42:37 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 09:43:12 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 10:03:13 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 10:08:26 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 10:08:26 --> Error - Call to undefined method Controller_Bench::request() in C:\xampp\htdocs\php-bench\fuel\app\classes\controller\bench.php on line 14
-WARNING - 2013-04-12 10:10:34 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 10:10:34 --> 2048 - Non-static method Fuel\Core\Request::param() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\php-bench\fuel\app\classes\controller\bench.php on line 14
-WARNING - 2013-04-12 10:10:53 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-ERROR - 2013-04-12 10:10:53 --> Error - Call to undefined method Controller_Bench::request() in C:\xampp\htdocs\php-bench\fuel\app\classes\controller\bench.php on line 14
-WARNING - 2013-04-12 10:13:11 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 10:13:16 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 10:13:20 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 10:13:38 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 10:13:45 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.
-WARNING - 2013-04-12 10:13:48 --> Fuel\Core\Fuel::init - The configured locale en_US is not installed on your system.

+ 9 - 3
play-scala-mongodb/setup.py

@@ -25,18 +25,24 @@ def stop(logfile, errfile):
   if os.name == 'nt':
   if os.name == 'nt':
     with open("./play-scala-mongodb/target/universal/play-scala-mongodb-1.0-SNAPSHOT/RUNNING_PID") as f:
     with open("./play-scala-mongodb/target/universal/play-scala-mongodb-1.0-SNAPSHOT/RUNNING_PID") as f:
       pid = int(f.read())
       pid = int(f.read())
-      os.kill(pid, 9)
+      os.kill(pid, 15)
   else:
   else:
     p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
     p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
     out, err = p.communicate()
     out, err = p.communicate()
     for line in out.splitlines():
     for line in out.splitlines():
       if 'NettyServer' in line:
       if 'NettyServer' in line:
         pid = int(line.split(None, 2)[1])
         pid = int(line.split(None, 2)[1])
-        os.kill(pid, 9)
+        os.kill(pid, 15)
 
 
   try:
   try:
     os.remove("play-scala-mongodb/target/universal/play-scala-mongodb-1.0-SNAPSHOT/RUNNING_PID")
     os.remove("play-scala-mongodb/target/universal/play-scala-mongodb-1.0-SNAPSHOT/RUNNING_PID")
   except OSError:
   except OSError:
-    pass
+    return 1
+
+  # Takes up so much disk space
+  if os.name == 'nt':
+    subprocess.check_call("del /f /s /q target", shell=True, cwd="play-scala-mongodb", stderr=errfile, stdout=logfile)
+  else:
+    subprocess.check_call("rm -rf target", shell=True, cwd="play-scala-mongodb", stderr=errfile, stdout=logfile)
 
 
   return 0
   return 0

+ 8 - 2
play-slick/setup.py

@@ -35,12 +35,18 @@ def stop(logfile, errfile):
     #    os.kill(pid, 9)
     #    os.kill(pid, 9)
   with open("./play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID") as f:
   with open("./play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID") as f:
     pid = int(f.read())
     pid = int(f.read())
-    os.kill(pid, 9)
+    os.kill(pid, 15)
 
 
   try:
   try:
     #os.remove("play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID")
     #os.remove("play-slick/target/universal/play-slick-1.0-SNAPSHOT/RUNNING_PID")
     os.remove("play-slick/target/universal/play-slick-1.0-SNAPSHOT/play-slick-1.0-SNAPSHOT/RUNNING_PID")
     os.remove("play-slick/target/universal/play-slick-1.0-SNAPSHOT/play-slick-1.0-SNAPSHOT/RUNNING_PID")
   except OSError:
   except OSError:
-    pass
+    return 1
+
+  # Takes up so much disk space
+  if os.name == 'nt':
+    subprocess.check_call("del /f /s /q target", shell=True, cwd="play-slick", stderr=errfile, stdout=logfile)
+  else:
+    subprocess.check_call("rm -rf target", shell=True, cwd="play-slick", stderr=errfile, stdout=logfile)
 
 
   return 0
   return 0