Commit Graph

39 Commits

Author SHA1 Message Date
thinkphp
68b274aa52 exception_handle配置参数支持使用闭包定义render处理 2017-08-14 15:40:32 +08:00
thinkphp
d6b9e2f628 2017更新 2017-01-01 13:00:23 +08:00
thinkphp
fbf9e938e8 增加app_trace 参数用于配置是否开启trace调试 2016-07-03 10:39:23 +08:00
yunwuxin
39c056a8c3 getExceptionHandler 改为public 2016-06-16 16:57:22 +08:00
thinkphp
340bb3a660 改进Error类的register方法 2016-06-15 16:54:12 +08:00
thinkphp
4c848c4a74 取消 APP_DEBUG 常量 改为 App::$debug 属性获取 设置调试模式 改为 app_debug 配置参数 在应用配置文件中设置 2016-06-15 16:43:31 +08:00
tsingsun
378cdf3403 完善对appError的处理
补充记录error的记录
2016-06-02 17:24:51 +08:00
thinkphp
15df0ebf34 注释修正 2016-05-23 14:33:28 +08:00
thinkphp
60f6d10e16 完善Error类 2016-05-21 17:16:02 +08:00
yunwuxin
19d5b1fee9 格式化代码 2016-05-15 10:15:19 +08:00
yunwuxin
f78ba76767 修正异常处理和单元测试 2016-05-15 10:14:17 +08:00
yunwuxin
aaa0fd7c9f 完善框架的异常处理 2016-05-13 19:06:08 +08:00
thinkphp
7f385217b9 改进response类 2016-05-11 14:04:56 +08:00
thinkphp
054af31455 改进异常模板 和 修正 重复的页面trace输出 2016-05-10 11:20:11 +08:00
thinkphp
0c0e485d50 调整下Error类的trace输出 2016-05-06 18:48:59 +08:00
thinkphp
00cd2e61d9 改进数据库连接的问题 2016-04-27 15:44:50 +08:00
Mr.Wang
7770dd04b4 Log::record($log, 'error'); // 记录的错误,但是未保存 导致出现错误 无法跟踪 2016-04-05 19:21:42 +08:00
thinkphp
a6c1de5f89 修正error_page配置无效的问题 2016-03-18 08:35:54 +08:00
thinkphp
7e55cad2d8 改进异常页面显示 2016-03-14 23:31:29 +08:00
thinkphp
e2333b97db 改进部署模式下异常日志记录详细错误信息 2016-03-14 22:25:56 +08:00
thinkphp
d5870ddb59 改进Validate类 2016-03-06 21:01:31 +08:00
Mr.Wang
9dcab5cec2 基于\think\Exception 才使用 getHttpStatus 方法 2016-03-06 17:35:42 +08:00
thinkphp
f9c6ecafdb 改进Error类 2016-03-01 22:41:56 +08:00
麦当苗儿
e3c90ea9ad 修复部署模式异常页面不显示信息的BUG 2016-03-01 15:59:12 +08:00
thinkphp
bcd1375aa8 修正单元测试 2016-02-22 09:38:47 +08:00
thinkphp
d014a37f36 废除APP_AUTO_BUILD常量 系统不再判断是否需要自动生成 自动生成交给console执行 APP_AUTO_RUN默认值更改为true(start引导文件默认自动执行应用) 2016-02-21 17:03:23 +08:00
tale
aef23f5205 修复部署模式下抛异常时的一个E_NOTICE错误 2016-02-03 23:03:08 +08:00
thinkphp
f2ac964ea7 修正\think\Error类 2016-02-02 23:39:59 +08:00
jinchun
927c075f29 1)修正notice 的拼写错误;2)英文的":"后面加了个空格;3)补全Log::send() 注释;4)删除Error.php 里重复的 key;5)添加 File Log 测试用例 2016-02-02 20:02:37 +08:00
thinkphp
52a0dd1dfc 改进异常日志写入 2016-02-02 11:02:33 +08:00
麦当苗儿
89942815f6 添加Error异常的ErrorContext参数,并打印ErrorContext到异常页面 2016-02-02 10:38:43 +08:00
麦当苗儿
338532b024 修复错误的变量名 2016-02-01 21:14:34 +08:00
麦当苗儿
1fc0783ebf 添加日志记录,以及添加异常忽略支持
异常忽略支持忽略指定的异常类型,被忽略的异常仅仅记录到日志,不会中断程序执行
忽略的异常类型支持PHP的所有错误级别,多个级别支持 | 运算符
参考:http://php.net/manual/en/errorfunc.constants.php
2016-02-01 21:08:08 +08:00
thinkphp
6157940c8d 注释规范 2016-02-01 11:27:08 +08:00
thinkphp
8f2055f72e 修正错误 2016-02-01 09:11:32 +08:00
麦当苗儿
c19d23c248 重构Error类以及异常模板 2016-02-01 01:24:02 +08:00
Jinchun Yang
f6a708e1f8 1)修改了一些注释的错误参数类型和返回类型
2)修改了一些无意义的变量名
3)本次 commit 没有逻辑上的变动
2016-01-29 22:28:01 +08:00
thinkphp
2c5ec2ae87 Response::sendHttpStatus方法废弃 改为http_response_code 2016-01-26 09:30:07 +08:00
thinkphp
3881938ddb 调整类的文件命名规范为psr-4 2016-01-04 16:58:58 +08:00