optimize log tool
This commit is contained in:
+3
-3
@@ -52,9 +52,9 @@ func main() {
|
||||
"app": hotime.Proj{
|
||||
"index": hotime.Ctr{
|
||||
"test": func(this *hotime.Context) {
|
||||
fmt.Println(this.Db.GetTag())
|
||||
this.Application.Log.Error("dasdasdas")
|
||||
this.Log.Error("dadasdasd")
|
||||
//fmt.Println(this.Db.GetTag())
|
||||
//this.Application.Log.Error("dasdasdas")
|
||||
//this.Log.Error("dadasdasd")
|
||||
//x:=this.Db.Action(func(db hotime.HoTimeDB) bool {
|
||||
//
|
||||
// db.Insert("user",hotime.Map{"unickname":"dasdas"})
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var ws = new WebSocket("ws://localhost:8080/app/index/websocket");
|
||||
var ws = new WebSocket("ws://localhost:80/app/index/websocket");
|
||||
ws.onmessage = function(e) {
|
||||
|
||||
$('<li>').text(e.data).appendTo($ul);
|
||||
|
||||
Reference in New Issue
Block a user