diff --git a/console/command_executer.go b/console/command_executer.go index 5a61c75ad..1aebcf316 100644 --- a/console/command_executer.go +++ b/console/command_executer.go @@ -22,7 +22,6 @@ import ( "bytes" "encoding/json" "fmt" - "log" "reflect" "regexp" "strings" @@ -68,7 +67,7 @@ func (ce *CommandExecuter) clientArgs(iface interface{}) (args []string) { for i := 0; i < typ.NumField(); i++ { valField := val.Field(i) typeField := typ.Field(i) - log.Printf("%v (%v : %v)", typeField.Name, valField.Kind(), typeField.PkgPath) + //log.Printf("%v (%v : %v)", typeField.Name, valField.Kind(), typeField.PkgPath) if len(typeField.PkgPath) > 0 { //unexported field continue } @@ -77,7 +76,7 @@ func (ce *CommandExecuter) clientArgs(iface interface{}) (args []string) { if valField.Kind() == reflect.Ptr { valField = reflect.New(valField.Type().Elem()).Elem() if valField.Kind() != reflect.Struct { - log.Printf("Here: %v (%v)", typeField.Name, valField.Kind()) + //log.Printf("Here: %v (%v)", typeField.Name, valField.Kind()) args = append(args, typeField.Name) continue } diff --git a/data/conf/samples/tutmysql/cgrates.json b/data/conf/samples/tutmysql/cgrates.json index e76f51945..0c61e4f56 100644 --- a/data/conf/samples/tutmysql/cgrates.json +++ b/data/conf/samples/tutmysql/cgrates.json @@ -5,7 +5,6 @@ "general": { "log_level": 7, - "logger":"*stdout", }, diff --git a/docs/tut_cgrates_usage.rst b/docs/tut_cgrates_usage.rst index 5861011e2..7dbd760da 100644 --- a/docs/tut_cgrates_usage.rst +++ b/docs/tut_cgrates_usage.rst @@ -69,13 +69,12 @@ To verify that all actions successfully performed, we use following *cgr-console - Query call costs so we can see our calls will have expected costs (final cost will result as sum of *ConnectFee* and *Cost* fields): :: - - cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1002" TimeStart="2014-08-04T13:00:00Z" TimeEnd="2014-08-04T13:00:20Z"' - cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1002" TimeStart="2014-08-04T13:00:00Z" TimeEnd="2014-08-04T13:01:25Z"' - cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1003" TimeStart="2014-08-04T13:00:00Z" TimeEnd="2014-08-04T13:00:20Z"' - cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1003" TimeStart="2014-08-04T13:00:00Z" TimeEnd="2014-08-04T13:01:25Z"' - cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1004" TimeStart="2014-08-04T13:00:00Z" TimeEnd="2014-08-04T13:00:20Z"' - cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1004" TimeStart="2014-08-04T13:00:00Z" TimeEnd="2014-08-04T13:01:25Z"' + cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1002" AnswerTime="2014-08-04T13:00:00Z" Usage="20s"' + cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1002" AnswerTime="2014-08-04T13:00:00Z" Usage="1m25s"' + cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1003" AnswerTime="2014-08-04T13:00:00Z" Usage="20s"' + cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1003" AnswerTime="2014-08-04T13:00:00Z" Usage="1m25s"' + cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1004" AnswerTime="2014-08-04T13:00:00Z" Usage="20s"' + cgr-console 'cost Category="call" Tenant="cgrates.org" Subject="1001" Destination="1004" AnswerTime="2014-08-04T13:00:00Z" Usage="1m25s"' - Make sure *CDRStats Queues* were created: