

Started GET "//sessions/ldap_user_auth" for 127.0.0.1 at 2016-12-23 11:26:21 +0300
  ActiveRecord::SchemaMigration Load (32.8ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by SessionsController#ldap_user_auth as HTML
  User Load (19.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
Redirected to http://localhost:3007/sessions/login?target=%2Fsessions%2Fldap_user_auth
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 162ms (ActiveRecord: 106.9ms)


Started GET "/sessions/login?target=%2Fsessions%2Fldap_user_auth" for 127.0.0.1 at 2016-12-23 11:26:22 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/sessions/ldap_user_auth"}
  Rendered sessions/login.html.erb within layouts/sessions (1277.7ms)
  Rendered shared/_colorlist.html.erb (0.8ms)
  Rendered shared/_loading.html.erb (6.2ms)
Completed 200 OK in 1373ms (Views: 1370.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 11:26:24 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 11:26:24 +0300


Started POST "/sessions/login_attempt?target=%2Fsessions%2Fldap_user_auth" for 127.0.0.1 at 2016-12-23 11:26:27 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"1ZGya9Et1lFkIxlTTJJhpDX2/Qghsm/eGT7xqN59RFXEQ4rJd74RHssZjXf1zrUjItw0YeXQPn/amPDE6arHow==", "username"=>"sensor", "login_password"=>"[FILTERED]", "commit"=>"Login", "target"=>"/sessions/ldap_user_auth"}
  User Load (8.4ms)  SELECT  "users".* FROM "users" WHERE "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
   (0.4ms)  BEGIN
  SQL (11.7ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 92], ["last_login", "2016-12-23 11:26:27.000000"], ["session_id", "14c5b0095356858767e76b3bdd36e95ab18ad77f"], ["updated_at", "2016-12-23 08:26:27.873173"], ["id", 1]]
   (6.2ms)  COMMIT
Redirected to http://localhost:3007/sessions/ldap_user_auth
Completed 302 Found in 64ms (ActiveRecord: 26.8ms)


Started GET "/sessions/ldap_user_auth" for 127.0.0.1 at 2016-12-23 11:26:27 +0300
Processing by SessionsController#ldap_user_auth as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered text template (0.0ms)
Completed 200 OK in 29ms (Views: 3.4ms | ActiveRecord: 0.5ms)
  ActiveRecord::SchemaMigration Load (0.7ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateLdapParameters (20161223084058)
   (0.2ms)  BEGIN
   (159.8ms)  CREATE TABLE "ldap_parameters" ("id" serial primary key, "parameter" character varying, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
  SQL (17.1ms)  INSERT INTO "schema_migrations" ("version") VALUES ($1)  [["version", "20161223084058"]]
   (10.2ms)  COMMIT
Migrating to CreateLdapUserGroups (20161223084503)
   (5.9ms)  BEGIN
   (87.4ms)  CREATE TABLE "ldap_user_groups" ("id" serial primary key, "user_group_id" integer, "ldap_group_name" character varying, "order_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
  SQL (0.4ms)  INSERT INTO "schema_migrations" ("version") VALUES ($1)  [["version", "20161223084503"]]
   (14.2ms)  COMMIT
  ActiveRecord::SchemaMigration Load (0.7ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (9.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'active_data'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'custom_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_login_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_office_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_operation_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_rules'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_page_flow_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_proc_cont_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'global_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_parameters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'login_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'logins'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'offices'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (4.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_servers'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_sources'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_types'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operations'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'sub_menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_accesses'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_logs'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'users'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

  ActiveRecord::SchemaMigration Load (1.0ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to AddColumnNameToLdapParameter (20161223091841)
   (0.2ms)  BEGIN
   (29.0ms)  ALTER TABLE "ldap_parameters" ADD "name" character varying
  SQL (6.3ms)  INSERT INTO "schema_migrations" ("version") VALUES ($1)  [["version", "20161223091841"]]
   (11.5ms)  COMMIT
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (2.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'active_data'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'custom_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_login_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_office_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_operation_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_rules'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_page_flow_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_proc_cont_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'global_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_parameters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'login_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'logins'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'offices'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (4.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_servers'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_sources'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_types'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.1ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operations'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'sub_menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_accesses'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_logs'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'users'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname



Started GET "/" for 127.0.0.1 at 2016-12-23 12:28:55 +0300
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (23.0ms)
   (0.2ms)  BEGIN
  SQL (26.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:28:55.889120"], ["updated_at", "2016-12-23 09:28:55.889120"]]
   (1.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (6.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (13.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (15.0ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (13.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (11.9ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (14.7ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (2.9ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (125.7ms)
  Rendered shared/_loading.html.erb (2.8ms)
Completed 200 OK in 556ms (Views: 396.4ms | ActiveRecord: 125.0ms)


Started GET "/" for 127.0.0.1 at 2016-12-23 12:28:56 +0300
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (6.3ms)
   (0.2ms)  BEGIN
  SQL (10.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:28:56.546637"], ["updated_at", "2016-12-23 09:28:56.546637"]]
   (0.8ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (1.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (18.0ms)
  Rendered shared/_loading.html.erb (1.2ms)
Completed 200 OK in 99ms (Views: 80.2ms | ActiveRecord: 16.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:28:56 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:28:57 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:28:57 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (6.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:28:57.275305"], ["updated_at", "2016-12-23 09:28:57.275305"]]
   (6.1ms)  COMMIT
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 28ms (Views: 4.7ms | ActiveRecord: 14.6ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:28:57 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (6308.9ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (395.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (216.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (369.7ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (251.9ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (261.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (253.8ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (279.6ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (322.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 8774ms (Views: 0.5ms | ActiveRecord: 8664.6ms)


Started GET "/" for 127.0.0.1 at 2016-12-23 12:29:06 +0300
Processing by CommonController#index as HTML
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (4.9ms)
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:29:06.746752"], ["updated_at", "2016-12-23 09:29:06.746752"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (1.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (18.5ms)
  Rendered shared/_loading.html.erb (3.1ms)
Completed 200 OK in 95ms (Views: 79.0ms | ActiveRecord: 12.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:29:07 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:29:07 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:29:07 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:29:07.909619"], ["updated_at", "2016-12-23 09:29:07.909619"]]
   (27.7ms)  COMMIT
  User Load (2.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (2.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (3.7ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 54ms (Views: 0.7ms | ActiveRecord: 37.0ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:29:08 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (385.8ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (212.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (189.3ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (211.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (213.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (268.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (209.8ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (215.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (214.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2144ms (Views: 0.8ms | ActiveRecord: 2120.9ms)


Started GET "/common/sensor_install" for 127.0.0.1 at 2016-12-23 12:29:16 +0300
Processing by CommonController#sensor_install as HTML
  SQL (19.2ms)  DELETE FROM "menus"
  SQL (22.2ms)  DELETE FROM "sub_menus"
   (0.2ms)  BEGIN
  SQL (29.7ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["ru", "Сотрудники"], ["en", "Employees"], ["name_eng", "logins"], ["created_at", "2016-12-23 09:29:16.163377"], ["updated_at", "2016-12-23 09:29:16.163377"]]
   (2.4ms)  COMMIT
   (1.0ms)  BEGIN
  SQL (27.9ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 1], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:29:16.199638"], ["updated_at", "2016-12-23 09:29:16.199638"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 2], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:29:16.232547"], ["updated_at", "2016-12-23 09:29:16.232547"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 3], ["ru", "Карта сотрудника"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:29:16.235986"], ["updated_at", "2016-12-23 09:29:16.235986"]]
   (14.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 22], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:29:16.253421"], ["updated_at", "2016-12-23 09:29:16.253421"]]
   (11.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.9ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 2], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "operations"], ["created_at", "2016-12-23 09:29:16.267796"], ["updated_at", "2016-12-23 09:29:16.267796"]]
   (11.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 5], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:29:16.282639"], ["updated_at", "2016-12-23 09:29:16.282639"]]
   (6.8ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 6], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:29:16.292027"], ["updated_at", "2016-12-23 09:29:16.292027"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 7], ["ru", "Карта операции"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:29:16.296421"], ["updated_at", "2016-12-23 09:29:16.296421"]]
   (6.3ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 3], ["ru", "Филиалы"], ["en", "Branches"], ["name_eng", "office"], ["created_at", "2016-12-23 09:29:16.306669"], ["updated_at", "2016-12-23 09:29:16.306669"]]
   (11.1ms)  COMMIT
   (0.1ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 9], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:29:16.320249"], ["updated_at", "2016-12-23 09:29:16.320249"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 21], ["ru", "Филиал"], ["en", "Branch"], ["name_eng", "list"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:29:16.324086"], ["updated_at", "2016-12-23 09:29:16.324086"]]
   (1.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 4], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["created_at", "2016-12-23 09:29:16.328442"], ["updated_at", "2016-12-23 09:29:16.328442"]]
   (6.3ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 10], ["ru", "Отчет"], ["en", "Report"], ["name_eng", "export"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:29:16.338019"], ["updated_at", "2016-12-23 09:29:16.338019"]]
   (5.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 11], ["ru", "По операции"], ["en", "By operation"], ["name_eng", "operation"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:29:16.346028"], ["updated_at", "2016-12-23 09:29:16.346028"]]
   (21.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 12], ["ru", "По дням"], ["en", "By days"], ["name_eng", "day"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:29:16.369660"], ["updated_at", "2016-12-23 09:29:16.369660"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 13], ["ru", "Сравнение дней"], ["en", "Days compare"], ["name_eng", "compare"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:29:16.373631"], ["updated_at", "2016-12-23 09:29:16.373631"]]
   (0.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 20], ["ru", "Логирование Flextera"], ["en", "Flextera Logs"], ["name_eng", "flextera_log"], ["menu_id", 4], ["visible", 0], ["created_at", "2016-12-23 09:29:16.376784"], ["updated_at", "2016-12-23 09:29:16.376784"]]
   (0.9ms)  COMMIT
   (0.1ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 5], ["ru", "Настройки"], ["en", "Settings"], ["name_eng", "settings"], ["created_at", "2016-12-23 09:29:16.379770"], ["updated_at", "2016-12-23 09:29:16.379770"]]
   (1.3ms)  COMMIT
   (0.1ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 14], ["ru", "Оповещение по почте"], ["en", "Email notifications"], ["name_eng", "mail"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.383299"], ["updated_at", "2016-12-23 09:29:16.383299"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 15], ["ru", "Пользователи"], ["en", "Users"], ["name_eng", "users"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.387373"], ["updated_at", "2016-12-23 09:29:16.387373"]]
   (6.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 16], ["ru", "Группы пользователей"], ["en", "User groups"], ["name_eng", "user_groups"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.395903"], ["updated_at", "2016-12-23 09:29:16.395903"]]
   (12.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 17], ["ru", "Фильтры"], ["en", "Filters"], ["name_eng", "filters"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.410577"], ["updated_at", "2016-12-23 09:29:16.410577"]]
   (5.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 18], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "kpi"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.418654"], ["updated_at", "2016-12-23 09:29:16.418654"]]
   (11.6ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 19], ["ru", "Сотрудники"], ["en", "Employee information"], ["name_eng", "logins_info"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.432865"], ["updated_at", "2016-12-23 09:29:16.432865"]]
   (4.9ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 23], ["ru", "Active Directory"], ["en", "Active Directory"], ["name_eng", "ad_connections"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.440376"], ["updated_at", "2016-12-23 09:29:16.440376"]]
   (6.1ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (3.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 24], ["ru", "Логирование"], ["en", "Logs"], ["name_eng", "logs"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:29:16.450636"], ["updated_at", "2016-12-23 09:29:16.450636"]]
   (14.8ms)  COMMIT
   (0.2ms)  SELECT COUNT(*) FROM "offices"
   (0.3ms)  SELECT COUNT(*) FROM "users"
   (5.3ms)  SELECT COUNT(*) FROM "ldap_parameters"
   (0.2ms)  BEGIN
  SQL (13.7ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "server"], ["name", "Адрес сервера"], ["created_at", "2016-12-23 09:29:16.490851"], ["updated_at", "2016-12-23 09:29:16.490851"]]
   (14.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "port"], ["name", "Порт"], ["created_at", "2016-12-23 09:29:16.521250"], ["updated_at", "2016-12-23 09:29:16.521250"]]
   (6.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "base"], ["name", "Исходная точка подключения (base dn)"], ["created_at", "2016-12-23 09:29:16.529423"], ["updated_at", "2016-12-23 09:29:16.529423"]]
   (11.8ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "domain"], ["name", "Домен"], ["created_at", "2016-12-23 09:29:16.544008"], ["updated_at", "2016-12-23 09:29:16.544008"]]
   (12.2ms)  COMMIT
   (12.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  UserGroup Load (24.0ms)  SELECT "user_groups".* FROM "user_groups"  ORDER BY id ASC
   (0.2ms)  BEGIN
  SQL (6.0ms)  INSERT INTO "ldap_user_groups" ("user_group_id", "order_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_group_id", 1], ["order_id", 0], ["created_at", "2016-12-23 09:29:16.613899"], ["updated_at", "2016-12-23 09:29:16.613899"]]
   (6.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "ldap_user_groups" ("user_group_id", "order_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_group_id", 2], ["order_id", 1], ["created_at", "2016-12-23 09:29:16.629038"], ["updated_at", "2016-12-23 09:29:16.629038"]]
   (12.0ms)  COMMIT
Redirected to http://localhost:3007/common/index
Completed 302 Found in 524ms (ActiveRecord: 419.4ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 12:29:16 +0300
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (3.7ms)
   (0.2ms)  BEGIN
  SQL (5.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:29:16.680175"], ["updated_at", "2016-12-23 09:29:16.680175"]]
   (11.7ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (7.3ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (4.9ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (1.6ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (11.1ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (32.3ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 111ms (Views: 63.1ms | ActiveRecord: 45.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:29:17 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:29:17 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:29:17 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:29:17.324577"], ["updated_at", "2016-12-23 09:29:17.324577"]]
   (0.7ms)  COMMIT
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 2.3ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:29:17 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (5.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (13.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (283.5ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (238.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (304.3ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (292.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (217.9ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (253.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (171.5ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (155.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (317.8ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2283ms (Views: 0.4ms | ActiveRecord: 2252.9ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:29:21 +0300

ActionController::RoutingError (No route matches [GET] "/settings/ad_connections"):
  actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  web-console (2.3.0) lib/web_console/middleware.rb:28:in `block in call'
  web-console (2.3.0) lib/web_console/middleware.rb:18:in `catch'
  web-console (2.3.0) lib/web_console/middleware.rb:18:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
  rack (1.6.4) lib/rack/runtime.rb:18:in `call'
  activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  rack (1.6.4) lib/rack/lock.rb:17:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'
  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
  railties (4.2.4) lib/rails/engine.rb:518:in `call'
  railties (4.2.4) lib/rails/application.rb:165:in `call'
  rack (1.6.4) lib/rack/content_length.rb:15:in `call'
  thin (1.7.0) lib/thin/connection.rb:86:in `block in pre_process'
  thin (1.7.0) lib/thin/connection.rb:84:in `catch'
  thin (1.7.0) lib/thin/connection.rb:84:in `pre_process'
  thin (1.7.0) lib/thin/connection.rb:53:in `process'
  thin (1.7.0) lib/thin/connection.rb:39:in `receive_data'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run_machine'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run'
  thin (1.7.0) lib/thin/backends/base.rb:73:in `start'
  thin (1.7.0) lib/thin/server.rb:162:in `start'
  rack (1.6.4) lib/rack/handler/thin.rb:19:in `run'
  rack (1.6.4) lib/rack/server.rb:286:in `start'
  railties (4.2.4) lib/rails/commands/server.rb:80:in `start'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:80:in `block in server'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:75:in `tap'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:75:in `server'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:39:in `run_command!'
  railties (4.2.4) lib/rails/commands.rb:17:in `<top (required)>'
  bin/rails:4:in `require'
  bin/rails:4:in `<main>'


  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (17.1ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (45.1ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (453.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_markup.html.erb (0.8ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/console.js.erb within layouts/javascript (164.8ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/index.html.erb (294.3ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:29:54 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered settings/ad_connections.html.erb within layouts/application (10.9ms)
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 110ms (Views: 0.8ms | ActiveRecord: 52.2ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:30:06 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (4.1ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.7ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (11.4ms)
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:30:06.774571"], ["updated_at", "2016-12-23 09:30:06.774571"]]
   (6.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (1.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (44.1ms)
  Rendered shared/_loading.html.erb (0.8ms)
Completed 200 OK in 158ms (Views: 116.6ms | ActiveRecord: 34.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:30:07 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:30:07 +0300


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:30:20 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (3.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (12.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (2.4ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:30:20.784759"], ["updated_at", "2016-12-23 09:30:20.784759"]]
   (6.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (15.0ms)
  Rendered shared/_loading.html.erb (0.9ms)
Completed 200 OK in 101ms (Views: 66.8ms | ActiveRecord: 28.1ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:30:21 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:30:21 +0300
  ActiveRecord::SchemaMigration Load (18.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to AddColumnAdUsertoUser (20161223093342)
   (0.2ms)  BEGIN
  SQL (7.5ms)  INSERT INTO "schema_migrations" ("version") VALUES ($1)  [["version", "20161223093342"]]
   (13.3ms)  COMMIT
  ActiveRecord::SchemaMigration Load (0.5ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (4.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'active_data'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'custom_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_login_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_office_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_operation_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_rules'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.1ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_page_flow_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_proc_cont_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'global_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_parameters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'login_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'logins'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'offices'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.1ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_servers'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_sources'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_types'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operations'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'sub_menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_accesses'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_logs'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'users'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname



Started POST "/sessions/logout" for 127.0.0.1 at 2016-12-23 12:35:32 +0300
  ActiveRecord::SchemaMigration Load (4.0ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by SessionsController#logout as */*
Redirected to http://localhost:3007/sessions/login
Completed 200 OK in 3ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 12:35:32 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (12.5ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.7ms)
Completed 200 OK in 68ms (Views: 67.2ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 12:35:32 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (3.6ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.4ms)
Completed 200 OK in 53ms (Views: 51.5ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:35:32 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 12:35:35 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"zTRFWQr2ruhlIpfTSxeCxOPil810prUkGbG9h9RFZJrc5n37rGVpp8oYA/fyS1ZD9MhepLDE5IXaF7zr45LnbA==", "username"=>"sensor", "login_password"=>"[FILTERED]", "commit"=>"Login"}
PG::UndefinedColumn: ERROR:  column "ad_user" does not exist
LINE 1: SELECT  "users".* FROM "users" WHERE (ad_user != 1) AND "use...
                                              ^
: SELECT  "users".* FROM "users" WHERE (ad_user != 1) AND "users"."username" = $1 LIMIT 1
  Rendered text template (0.1ms)
Completed 500 Internal Server Error in 47ms (Views: 1.1ms | ActiveRecord: 0.8ms)
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to AddColumnAdUsertoUser (20161223093342)
   (0.2ms)  BEGIN
   (47.6ms)  ALTER TABLE "ldap_parameters" DROP "name"
  SQL (1.3ms)  DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1  [["version", "20161223093342"]]
   (23.1ms)  COMMIT
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (7.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'active_data'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'custom_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_login_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_office_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (5.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_operation_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (4.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_rules'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_page_flow_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_proc_cont_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'global_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (16.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_parameters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (6.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.1ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'login_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'logins'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'offices'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_servers'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_sources'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_types'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operations'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'sub_menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_accesses'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_logs'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'users'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

  ActiveRecord::SchemaMigration Load (0.7ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to AddColumnAdUsertoUser (20161223093342)
   (0.2ms)  BEGIN
   (6.6ms)  ALTER TABLE "user" ADD "ad_user" integer
PG::UndefinedTable: ERROR:  relation "user" does not exist
: ALTER TABLE "user" ADD "ad_user" integer
   (0.2ms)  ROLLBACK
  ActiveRecord::SchemaMigration Load (0.6ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to AddColumnAdUsertoUser (20161223093342)
   (0.3ms)  BEGIN
   (7.0ms)  ALTER TABLE "user" ADD "ad_user" integer
PG::UndefinedTable: ERROR:  relation "user" does not exist
: ALTER TABLE "user" ADD "ad_user" integer
   (0.2ms)  ROLLBACK
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to AddColumnAdUserToUser (20161223093851)
   (0.2ms)  BEGIN
   (29.5ms)  ALTER TABLE "users" ADD "ad_user" integer
  SQL (6.3ms)  INSERT INTO "schema_migrations" ("version") VALUES ($1)  [["version", "20161223093851"]]
   (6.0ms)  COMMIT
  ActiveRecord::SchemaMigration Load (1.5ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (2.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'active_data'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'custom_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_login_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_office_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_operation_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_rules'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_page_flow_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_proc_cont_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'global_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_parameters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'login_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'logins'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'offices'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_servers'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_sources'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_types'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operations'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'sub_menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_accesses'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_logs'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'users'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname



Started GET "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 12:39:09 +0300
  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT "schema_migrations".* FROM "schema_migrations"

ActionController::RoutingError (No route matches [GET] "/sessions/login_attempt"):
  actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  web-console (2.3.0) lib/web_console/middleware.rb:28:in `block in call'
  web-console (2.3.0) lib/web_console/middleware.rb:18:in `catch'
  web-console (2.3.0) lib/web_console/middleware.rb:18:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
  rack (1.6.4) lib/rack/runtime.rb:18:in `call'
  activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  rack (1.6.4) lib/rack/lock.rb:17:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'
  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
  railties (4.2.4) lib/rails/engine.rb:518:in `call'
  railties (4.2.4) lib/rails/application.rb:165:in `call'
  rack (1.6.4) lib/rack/content_length.rb:15:in `call'
  thin (1.7.0) lib/thin/connection.rb:86:in `block in pre_process'
  thin (1.7.0) lib/thin/connection.rb:84:in `catch'
  thin (1.7.0) lib/thin/connection.rb:84:in `pre_process'
  thin (1.7.0) lib/thin/connection.rb:53:in `process'
  thin (1.7.0) lib/thin/connection.rb:39:in `receive_data'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run_machine'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run'
  thin (1.7.0) lib/thin/backends/base.rb:73:in `start'
  thin (1.7.0) lib/thin/server.rb:162:in `start'
  rack (1.6.4) lib/rack/handler/thin.rb:19:in `run'
  rack (1.6.4) lib/rack/server.rb:286:in `start'
  railties (4.2.4) lib/rails/commands/server.rb:80:in `start'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:80:in `block in server'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:75:in `tap'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:75:in `server'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:39:in `run_command!'
  railties (4.2.4) lib/rails/commands.rb:17:in `<top (required)>'
  bin/rails:4:in `require'
  bin/rails:4:in `<main>'


  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (8.5ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.3ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.0ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (284.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_markup.html.erb (0.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.3ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/console.js.erb within layouts/javascript (111.7ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.7ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/index.html.erb (212.3ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 12:39:22 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"zTRFWQr2ruhlIpfTSxeCxOPil810prUkGbG9h9RFZJrc5n37rGVpp8oYA/fyS1ZD9MhepLDE5IXaF7zr45LnbA==", "username"=>"sensor", "login_password"=>"[FILTERED]", "commit"=>"Login"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE (ad_user != 1) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
  Rendered sessions/login.html.erb within layouts/sessions (9.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.1ms)
Completed 200 OK in 74ms (Views: 67.3ms | ActiveRecord: 1.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:39:23 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:39:23 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 12:39:25 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"BE0nBHh7lacT+8sEaceI7Ocl0rUCymiiLKc9IDCrZSEVnx+m3uhS6LzBXyDQm1xr8A8b3MaoOQPvATxMB3zm1w==", "username"=>"sensor", "login_password"=>"[FILTERED]", "commit"=>"Login"}
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE (ad_user != 1) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
  Rendered sessions/login.html.erb within layouts/sessions (2.8ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.4ms)
Completed 200 OK in 33ms (Views: 27.8ms | ActiveRecord: 0.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:39:25 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:39:25 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 12:39:46 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"+jlaboTrlYYOfVV59AJfQCE6NUr0nDEjPyPt1ew1QNDr62LMInhSyaFHwV1NXovHNhD8IzD+YIL8hey52+LDJg==", "username"=>"sensor", "login_password"=>"[FILTERED]", "commit"=>"Login"}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
   (0.2ms)  BEGIN
  SQL (0.9ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 93], ["last_login", "2016-12-23 12:39:46.000000"], ["session_id", "2b186585a8ffcfd7499255dc554ae173f1b8892a"], ["updated_at", "2016-12-23 09:39:46.619348"], ["id", 1]]
   (5.1ms)  COMMIT
Redirected to http://localhost:3007/common/index
Completed 302 Found in 26ms (ActiveRecord: 8.0ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 12:39:46 +0300
Processing by CommonController#index as HTML
  User Load (8.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
PG::FeatureNotSupported: ERROR:  cached plan must not change result type
: SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (7.0ms)
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:39:46.721486"], ["updated_at", "2016-12-23 09:39:46.721486"]]
   (5.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (55.5ms)
  Rendered shared/_loading.html.erb (0.9ms)
Completed 200 OK in 203ms (Views: 158.0ms | ActiveRecord: 28.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:39:47 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:39:47 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:39:47 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:39:47.348345"], ["updated_at", "2016-12-23 09:39:47.348345"]]
   (11.6ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 24ms (Views: 0.7ms | ActiveRecord: 13.5ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:39:47 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (209.8ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (161.0ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (168.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (212.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (171.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (225.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (182.6ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (185.6ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (174.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1779ms (Views: 0.4ms | ActiveRecord: 1697.0ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:40:47 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (158.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (159.6ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (164.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (158.7ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (170.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (162.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (163.1ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (154.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (177.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1557ms (Views: 1.0ms | ActiveRecord: 1482.0ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:41:56 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (159.6ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (154.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (158.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (159.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (183.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (156.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (165.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (168.4ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (161.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1572ms (Views: 0.7ms | ActiveRecord: 1490.9ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:42:56 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (204.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (182.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (177.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (155.8ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (178.8ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (167.5ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (163.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (169.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (173.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1598ms (Views: 0.4ms | ActiveRecord: 1574.2ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:43:39 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (2.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (2.8ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (20.0ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (28.2ms)
   (0.2ms)  BEGIN
  SQL (7.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:43:39.652998"], ["updated_at", "2016-12-23 09:43:39.652998"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (9.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (2.8ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (2.9ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (2.1ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (59.0ms)
  Rendered shared/_loading.html.erb (3.0ms)
Completed 200 OK in 276ms (Views: 142.9ms | ActiveRecord: 108.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:43:40 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:43:40 +0300


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:44:39 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (2.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (2.1ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (2.3ms)
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:44:40.038750"], ["updated_at", "2016-12-23 09:44:40.038750"]]
   (1.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (1.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (29.5ms)
  Rendered shared/_loading.html.erb (2.8ms)
Completed 200 OK in 150ms (Views: 111.9ms | ActiveRecord: 13.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:44:40 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:44:40 +0300


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:45:41 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (1.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (2.7ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (2.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (4.9ms)
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:45:41.536618"], ["updated_at", "2016-12-23 09:45:41.536618"]]
   (5.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (2.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (32.8ms)
  Rendered shared/_loading.html.erb (1.7ms)
Completed 200 OK in 150ms (Views: 117.3ms | ActiveRecord: 20.9ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:45:41 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:45:42 +0300


Started GET "/common/sensor_install" for 127.0.0.1 at 2016-12-23 12:46:00 +0300
Processing by CommonController#sensor_install as HTML
  SQL (7.1ms)  DELETE FROM "menus"
  SQL (10.2ms)  DELETE FROM "sub_menus"
   (0.2ms)  BEGIN
  SQL (6.5ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["ru", "Сотрудники"], ["en", "Employees"], ["name_eng", "logins"], ["created_at", "2016-12-23 09:46:00.098039"], ["updated_at", "2016-12-23 09:46:00.098039"]]
   (9.4ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (12.9ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 1], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:46:00.117200"], ["updated_at", "2016-12-23 09:46:00.117200"]]
   (1.4ms)  COMMIT
   (2.8ms)  BEGIN
  SQL (1.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 2], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:46:00.137219"], ["updated_at", "2016-12-23 09:46:00.137219"]]
   (2.0ms)  COMMIT
   (1.0ms)  BEGIN
  SQL (1.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 3], ["ru", "Карта сотрудника"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:46:00.144227"], ["updated_at", "2016-12-23 09:46:00.144227"]]
   (2.2ms)  COMMIT
   (1.0ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 22], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:46:00.151560"], ["updated_at", "2016-12-23 09:46:00.151560"]]
   (1.4ms)  COMMIT
   (0.5ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 2], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "operations"], ["created_at", "2016-12-23 09:46:00.156687"], ["updated_at", "2016-12-23 09:46:00.156687"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 5], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:46:00.160186"], ["updated_at", "2016-12-23 09:46:00.160186"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 6], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:46:00.163373"], ["updated_at", "2016-12-23 09:46:00.163373"]]
   (1.1ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 7], ["ru", "Карта операции"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:46:00.167986"], ["updated_at", "2016-12-23 09:46:00.167986"]]
   (5.8ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 3], ["ru", "Филиалы"], ["en", "Branches"], ["name_eng", "office"], ["created_at", "2016-12-23 09:46:00.176925"], ["updated_at", "2016-12-23 09:46:00.176925"]]
   (5.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 9], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:46:00.185023"], ["updated_at", "2016-12-23 09:46:00.185023"]]
   (6.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 21], ["ru", "Филиал"], ["en", "Branch"], ["name_eng", "list"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:46:00.193224"], ["updated_at", "2016-12-23 09:46:00.193224"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 4], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["created_at", "2016-12-23 09:46:00.196769"], ["updated_at", "2016-12-23 09:46:00.196769"]]
   (1.1ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 10], ["ru", "Отчет"], ["en", "Report"], ["name_eng", "export"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:46:00.200617"], ["updated_at", "2016-12-23 09:46:00.200617"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 11], ["ru", "По операции"], ["en", "By operation"], ["name_eng", "operation"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:46:00.203851"], ["updated_at", "2016-12-23 09:46:00.203851"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 12], ["ru", "По дням"], ["en", "By days"], ["name_eng", "day"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:46:00.207274"], ["updated_at", "2016-12-23 09:46:00.207274"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 13], ["ru", "Сравнение дней"], ["en", "Days compare"], ["name_eng", "compare"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:46:00.210556"], ["updated_at", "2016-12-23 09:46:00.210556"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 20], ["ru", "Логирование Flextera"], ["en", "Flextera Logs"], ["name_eng", "flextera_log"], ["menu_id", 4], ["visible", 0], ["created_at", "2016-12-23 09:46:00.213928"], ["updated_at", "2016-12-23 09:46:00.213928"]]
   (1.6ms)  COMMIT
   (0.5ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 5], ["ru", "Настройки"], ["en", "Settings"], ["name_eng", "settings"], ["created_at", "2016-12-23 09:46:00.219065"], ["updated_at", "2016-12-23 09:46:00.219065"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 14], ["ru", "Оповещение по почте"], ["en", "Email notifications"], ["name_eng", "mail"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.223469"], ["updated_at", "2016-12-23 09:46:00.223469"]]
   (1.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 15], ["ru", "Пользователи"], ["en", "Users"], ["name_eng", "users"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.227122"], ["updated_at", "2016-12-23 09:46:00.227122"]]
   (1.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 16], ["ru", "Группы пользователей"], ["en", "User groups"], ["name_eng", "user_groups"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.231386"], ["updated_at", "2016-12-23 09:46:00.231386"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 17], ["ru", "Фильтры"], ["en", "Filters"], ["name_eng", "filters"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.234861"], ["updated_at", "2016-12-23 09:46:00.234861"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 18], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "kpi"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.238091"], ["updated_at", "2016-12-23 09:46:00.238091"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 19], ["ru", "Сотрудники"], ["en", "Employee information"], ["name_eng", "logins_info"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.241359"], ["updated_at", "2016-12-23 09:46:00.241359"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 23], ["ru", "Active Directory"], ["en", "Active Directory"], ["name_eng", "ad_connections"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.244885"], ["updated_at", "2016-12-23 09:46:00.244885"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 24], ["ru", "Логирование"], ["en", "Logs"], ["name_eng", "logs"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:46:00.248150"], ["updated_at", "2016-12-23 09:46:00.248150"]]
   (5.9ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "offices"
   (0.3ms)  SELECT COUNT(*) FROM "users"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_parameters"
   (6.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
Redirected to http://localhost:3007/common/index
Completed 302 Found in 207ms (ActiveRecord: 139.9ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 12:46:00 +0300
Processing by CommonController#index as HTML
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (6.2ms)
   (0.3ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:46:00.340666"], ["updated_at", "2016-12-23 09:46:00.340666"]]
   (6.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (23.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (54.4ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 143ms (Views: 107.0ms | ActiveRecord: 34.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:46:00 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:46:00 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:46:00 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:46:00.965473"], ["updated_at", "2016-12-23 09:46:00.965473"]]
   (6.3ms)  COMMIT
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 40ms (Views: 4.6ms | ActiveRecord: 9.2ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:46:01 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (2.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (324.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (235.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (249.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (204.6ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (211.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (221.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (157.8ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (157.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (150.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1952ms (Views: 0.4ms | ActiveRecord: 1915.2ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:46:03 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (8.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (6.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (7.7ms)
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:46:03.464302"], ["updated_at", "2016-12-23 09:46:03.464302"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (2.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (5.1ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (4.9ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (25.0ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 108ms (Views: 65.5ms | ActiveRecord: 34.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:46:03 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:46:04 +0300
  ActiveRecord::SchemaMigration Load (19.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (3.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'active_data'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'custom_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_login_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_office_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_operation_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_rules'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_page_flow_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_proc_cont_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'global_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_parameters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.2ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'login_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'logins'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'offices'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_servers'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_sources'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_types'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operations'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.1ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'sub_menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_accesses'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_logs'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'users'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

  ActiveRecord::SchemaMigration Load (0.6ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to AddColumnNameToLdapParameter (20161223094721)
   (0.2ms)  BEGIN
   (2.8ms)  ALTER TABLE "ldap_parameters" ADD "name" character varying
  SQL (6.8ms)  INSERT INTO "schema_migrations" ("version") VALUES ($1)  [["version", "20161223094721"]]
   (6.1ms)  COMMIT
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (2.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'active_data'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'custom_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_login_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_office_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_operation_lists'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'email_rules'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_page_flow_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'flextera_proc_cont_errors'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'global_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_parameters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'ldap_user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.6ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'login_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.5ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'logins'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'offices'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_filters'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_servers'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_sources'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.7ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operation_types'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.9ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'operations'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'sub_menus'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (3.0ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_accesses'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.4ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_groups'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (2.3ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'user_logs'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname

   (1.8ms)  SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
FROM pg_constraint c
JOIN pg_class t1 ON c.conrelid = t1.oid
JOIN pg_class t2 ON c.confrelid = t2.oid
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
JOIN pg_namespace t3 ON c.connamespace = t3.oid
WHERE c.contype = 'f'
  AND t1.relname = 'users'
  AND t3.nspname = ANY (current_schemas(false))
ORDER BY c.conname



Started GET "/common/sensor_install" for 127.0.0.1 at 2016-12-23 12:47:30 +0300
  ActiveRecord::SchemaMigration Load (0.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by CommonController#sensor_install as HTML
  SQL (5.8ms)  DELETE FROM "menus"
  SQL (6.1ms)  DELETE FROM "sub_menus"
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["ru", "Сотрудники"], ["en", "Employees"], ["name_eng", "logins"], ["created_at", "2016-12-23 09:47:30.409117"], ["updated_at", "2016-12-23 09:47:30.409117"]]
   (5.9ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 1], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.427039"], ["updated_at", "2016-12-23 09:47:30.427039"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 2], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.431877"], ["updated_at", "2016-12-23 09:47:30.431877"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.8ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 3], ["ru", "Карта сотрудника"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.435250"], ["updated_at", "2016-12-23 09:47:30.435250"]]
   (6.1ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (2.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 22], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.445377"], ["updated_at", "2016-12-23 09:47:30.445377"]]
   (6.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 2], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "operations"], ["created_at", "2016-12-23 09:47:30.462880"], ["updated_at", "2016-12-23 09:47:30.462880"]]
   (5.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 5], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:47:30.472730"], ["updated_at", "2016-12-23 09:47:30.472730"]]
   (5.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 6], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:47:30.481394"], ["updated_at", "2016-12-23 09:47:30.481394"]]
   (1.7ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 7], ["ru", "Карта операции"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:47:30.485800"], ["updated_at", "2016-12-23 09:47:30.485800"]]
   (5.6ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 3], ["ru", "Филиалы"], ["en", "Branches"], ["name_eng", "office"], ["created_at", "2016-12-23 09:47:30.495212"], ["updated_at", "2016-12-23 09:47:30.495212"]]
   (8.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 9], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:47:30.513281"], ["updated_at", "2016-12-23 09:47:30.513281"]]
   (8.0ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 21], ["ru", "Филиал"], ["en", "Branch"], ["name_eng", "list"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:47:30.525888"], ["updated_at", "2016-12-23 09:47:30.525888"]]
   (7.0ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 4], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["created_at", "2016-12-23 09:47:30.536954"], ["updated_at", "2016-12-23 09:47:30.536954"]]
   (13.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 10], ["ru", "Отчет"], ["en", "Report"], ["name_eng", "export"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.552615"], ["updated_at", "2016-12-23 09:47:30.552615"]]
   (2.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 11], ["ru", "По операции"], ["en", "By operation"], ["name_eng", "operation"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.558367"], ["updated_at", "2016-12-23 09:47:30.558367"]]
   (0.6ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 12], ["ru", "По дням"], ["en", "By days"], ["name_eng", "day"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.561632"], ["updated_at", "2016-12-23 09:47:30.561632"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 13], ["ru", "Сравнение дней"], ["en", "Days compare"], ["name_eng", "compare"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.565542"], ["updated_at", "2016-12-23 09:47:30.565542"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 20], ["ru", "Логирование Flextera"], ["en", "Flextera Logs"], ["name_eng", "flextera_log"], ["menu_id", 4], ["visible", 0], ["created_at", "2016-12-23 09:47:30.569746"], ["updated_at", "2016-12-23 09:47:30.569746"]]
   (2.1ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 5], ["ru", "Настройки"], ["en", "Settings"], ["name_eng", "settings"], ["created_at", "2016-12-23 09:47:30.576435"], ["updated_at", "2016-12-23 09:47:30.576435"]]
   (7.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 14], ["ru", "Оповещение по почте"], ["en", "Email notifications"], ["name_eng", "mail"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.586193"], ["updated_at", "2016-12-23 09:47:30.586193"]]
   (8.3ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 15], ["ru", "Пользователи"], ["en", "Users"], ["name_eng", "users"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.598857"], ["updated_at", "2016-12-23 09:47:30.598857"]]
   (5.9ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 16], ["ru", "Группы пользователей"], ["en", "User groups"], ["name_eng", "user_groups"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.608343"], ["updated_at", "2016-12-23 09:47:30.608343"]]
   (8.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 17], ["ru", "Фильтры"], ["en", "Filters"], ["name_eng", "filters"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.619600"], ["updated_at", "2016-12-23 09:47:30.619600"]]
   (5.6ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 18], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "kpi"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.630124"], ["updated_at", "2016-12-23 09:47:30.630124"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 19], ["ru", "Сотрудники"], ["en", "Employee information"], ["name_eng", "logins_info"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.633819"], ["updated_at", "2016-12-23 09:47:30.633819"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 23], ["ru", "Active Directory"], ["en", "Active Directory"], ["name_eng", "ad_connections"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.637542"], ["updated_at", "2016-12-23 09:47:30.637542"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 24], ["ru", "Логирование"], ["en", "Logs"], ["name_eng", "logs"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.641515"], ["updated_at", "2016-12-23 09:47:30.641515"]]
   (1.4ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "offices"
   (0.3ms)  SELECT COUNT(*) FROM "users"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_parameters"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
Redirected to http://localhost:3007/common/index
Completed 302 Found in 286ms (ActiveRecord: 160.8ms)


Started GET "/common/sensor_install" for 127.0.0.1 at 2016-12-23 12:47:30 +0300
Processing by CommonController#sensor_install as HTML
  SQL (5.7ms)  DELETE FROM "menus"
  SQL (5.8ms)  DELETE FROM "sub_menus"
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["ru", "Сотрудники"], ["en", "Employees"], ["name_eng", "logins"], ["created_at", "2016-12-23 09:47:30.688982"], ["updated_at", "2016-12-23 09:47:30.688982"]]
   (6.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (1.5ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 1], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.704372"], ["updated_at", "2016-12-23 09:47:30.704372"]]
   (1.2ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 2], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.719798"], ["updated_at", "2016-12-23 09:47:30.719798"]]
   (1.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 3], ["ru", "Карта сотрудника"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.728551"], ["updated_at", "2016-12-23 09:47:30.728551"]]
   (6.6ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 22], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:47:30.738184"], ["updated_at", "2016-12-23 09:47:30.738184"]]
   (5.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 2], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "operations"], ["created_at", "2016-12-23 09:47:30.746318"], ["updated_at", "2016-12-23 09:47:30.746318"]]
   (5.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 5], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:47:30.755452"], ["updated_at", "2016-12-23 09:47:30.755452"]]
   (1.3ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 6], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:47:30.762443"], ["updated_at", "2016-12-23 09:47:30.762443"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 7], ["ru", "Карта операции"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:47:30.766083"], ["updated_at", "2016-12-23 09:47:30.766083"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 3], ["ru", "Филиалы"], ["en", "Branches"], ["name_eng", "office"], ["created_at", "2016-12-23 09:47:30.771896"], ["updated_at", "2016-12-23 09:47:30.771896"]]
   (1.7ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 9], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:47:30.777570"], ["updated_at", "2016-12-23 09:47:30.777570"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 21], ["ru", "Филиал"], ["en", "Branch"], ["name_eng", "list"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:47:30.781824"], ["updated_at", "2016-12-23 09:47:30.781824"]]
   (6.2ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 4], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["created_at", "2016-12-23 09:47:30.793542"], ["updated_at", "2016-12-23 09:47:30.793542"]]
   (6.6ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 10], ["ru", "Отчет"], ["en", "Report"], ["name_eng", "export"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.803120"], ["updated_at", "2016-12-23 09:47:30.803120"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 11], ["ru", "По операции"], ["en", "By operation"], ["name_eng", "operation"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.806607"], ["updated_at", "2016-12-23 09:47:30.806607"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 12], ["ru", "По дням"], ["en", "By days"], ["name_eng", "day"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.811784"], ["updated_at", "2016-12-23 09:47:30.811784"]]
   (0.4ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 13], ["ru", "Сравнение дней"], ["en", "Days compare"], ["name_eng", "compare"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:47:30.815315"], ["updated_at", "2016-12-23 09:47:30.815315"]]
   (6.4ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 20], ["ru", "Логирование Flextera"], ["en", "Flextera Logs"], ["name_eng", "flextera_log"], ["menu_id", 4], ["visible", 0], ["created_at", "2016-12-23 09:47:30.825840"], ["updated_at", "2016-12-23 09:47:30.825840"]]
   (5.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 5], ["ru", "Настройки"], ["en", "Settings"], ["name_eng", "settings"], ["created_at", "2016-12-23 09:47:30.834455"], ["updated_at", "2016-12-23 09:47:30.834455"]]
   (4.9ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 14], ["ru", "Оповещение по почте"], ["en", "Email notifications"], ["name_eng", "mail"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.841914"], ["updated_at", "2016-12-23 09:47:30.841914"]]
   (6.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 15], ["ru", "Пользователи"], ["en", "Users"], ["name_eng", "users"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.852527"], ["updated_at", "2016-12-23 09:47:30.852527"]]
   (5.4ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 16], ["ru", "Группы пользователей"], ["en", "User groups"], ["name_eng", "user_groups"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.860799"], ["updated_at", "2016-12-23 09:47:30.860799"]]
   (4.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 17], ["ru", "Фильтры"], ["en", "Filters"], ["name_eng", "filters"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.868000"], ["updated_at", "2016-12-23 09:47:30.868000"]]
   (1.4ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 18], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "kpi"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.873528"], ["updated_at", "2016-12-23 09:47:30.873528"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 19], ["ru", "Сотрудники"], ["en", "Employee information"], ["name_eng", "logins_info"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.878635"], ["updated_at", "2016-12-23 09:47:30.878635"]]
   (1.1ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 23], ["ru", "Active Directory"], ["en", "Active Directory"], ["name_eng", "ad_connections"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.882273"], ["updated_at", "2016-12-23 09:47:30.882273"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 24], ["ru", "Логирование"], ["en", "Logs"], ["name_eng", "logs"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:47:30.885941"], ["updated_at", "2016-12-23 09:47:30.885941"]]
   (1.2ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "offices"
   (0.3ms)  SELECT COUNT(*) FROM "users"
   (0.2ms)  SELECT COUNT(*) FROM "ldap_parameters"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
Redirected to http://localhost:3007/common/index
Completed 302 Found in 219ms (ActiveRecord: 116.9ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 12:47:30 +0300
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (6.3ms)
   (0.3ms)  BEGIN
  SQL (2.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:47:30.985038"], ["updated_at", "2016-12-23 09:47:30.985038"]]
   (5.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.9ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (78.4ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 230ms (Views: 197.6ms | ActiveRecord: 24.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:47:31 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:47:31 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:47:31 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:47:31.761835"], ["updated_at", "2016-12-23 09:47:31.761835"]]
   (7.2ms)  COMMIT
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 33ms (Views: 1.4ms | ActiveRecord: 9.3ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:47:32 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (40.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (330.9ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (181.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (283.3ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (364.9ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (302.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (171.5ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (168.7ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (179.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (145.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2255ms (Views: 0.5ms | ActiveRecord: 2171.4ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:47:35 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (10.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (12.9ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (30.0ms)
   (1.3ms)  BEGIN
  SQL (1.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:47:35.574459"], ["updated_at", "2016-12-23 09:47:35.574459"]]
   (2.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (5.9ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (6.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (6.0ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (38.9ms)
  Rendered shared/_loading.html.erb (2.0ms)
Completed 200 OK in 211ms (Views: 142.8ms | ActiveRecord: 61.1ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:47:35 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:47:36 +0300


Started GET "/common/sensor_install" for 127.0.0.1 at 2016-12-23 12:48:19 +0300
Processing by CommonController#sensor_install as HTML
  SQL (5.6ms)  DELETE FROM "menus"
  SQL (5.9ms)  DELETE FROM "sub_menus"
   (0.4ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["ru", "Сотрудники"], ["en", "Employees"], ["name_eng", "logins"], ["created_at", "2016-12-23 09:48:19.757617"], ["updated_at", "2016-12-23 09:48:19.757617"]]
   (4.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (1.5ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 1], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:19.764689"], ["updated_at", "2016-12-23 09:48:19.764689"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 2], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:19.769644"], ["updated_at", "2016-12-23 09:48:19.769644"]]
   (1.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 3], ["ru", "Карта сотрудника"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:19.774659"], ["updated_at", "2016-12-23 09:48:19.774659"]]
   (1.6ms)  COMMIT
   (0.1ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 22], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:19.779283"], ["updated_at", "2016-12-23 09:48:19.779283"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 2], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "operations"], ["created_at", "2016-12-23 09:48:19.782782"], ["updated_at", "2016-12-23 09:48:19.782782"]]
   (1.8ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 5], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:48:19.787176"], ["updated_at", "2016-12-23 09:48:19.787176"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 6], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:48:19.790800"], ["updated_at", "2016-12-23 09:48:19.790800"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 7], ["ru", "Карта операции"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:48:19.794447"], ["updated_at", "2016-12-23 09:48:19.794447"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 3], ["ru", "Филиалы"], ["en", "Branches"], ["name_eng", "office"], ["created_at", "2016-12-23 09:48:19.798193"], ["updated_at", "2016-12-23 09:48:19.798193"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 9], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:48:19.801668"], ["updated_at", "2016-12-23 09:48:19.801668"]]
   (1.2ms)  COMMIT
   (0.1ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 21], ["ru", "Филиал"], ["en", "Branch"], ["name_eng", "list"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:48:19.805010"], ["updated_at", "2016-12-23 09:48:19.805010"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 4], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["created_at", "2016-12-23 09:48:19.808744"], ["updated_at", "2016-12-23 09:48:19.808744"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 10], ["ru", "Отчет"], ["en", "Report"], ["name_eng", "export"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:19.812730"], ["updated_at", "2016-12-23 09:48:19.812730"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 11], ["ru", "По операции"], ["en", "By operation"], ["name_eng", "operation"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:19.816286"], ["updated_at", "2016-12-23 09:48:19.816286"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 12], ["ru", "По дням"], ["en", "By days"], ["name_eng", "day"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:19.820156"], ["updated_at", "2016-12-23 09:48:19.820156"]]
   (1.4ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 13], ["ru", "Сравнение дней"], ["en", "Days compare"], ["name_eng", "compare"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:19.825501"], ["updated_at", "2016-12-23 09:48:19.825501"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 20], ["ru", "Логирование Flextera"], ["en", "Flextera Logs"], ["name_eng", "flextera_log"], ["menu_id", 4], ["visible", 0], ["created_at", "2016-12-23 09:48:19.830009"], ["updated_at", "2016-12-23 09:48:19.830009"]]
   (2.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 5], ["ru", "Настройки"], ["en", "Settings"], ["name_eng", "settings"], ["created_at", "2016-12-23 09:48:19.834660"], ["updated_at", "2016-12-23 09:48:19.834660"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 14], ["ru", "Оповещение по почте"], ["en", "Email notifications"], ["name_eng", "mail"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.838160"], ["updated_at", "2016-12-23 09:48:19.838160"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 15], ["ru", "Пользователи"], ["en", "Users"], ["name_eng", "users"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.841643"], ["updated_at", "2016-12-23 09:48:19.841643"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 16], ["ru", "Группы пользователей"], ["en", "User groups"], ["name_eng", "user_groups"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.846107"], ["updated_at", "2016-12-23 09:48:19.846107"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 17], ["ru", "Фильтры"], ["en", "Filters"], ["name_eng", "filters"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.849870"], ["updated_at", "2016-12-23 09:48:19.849870"]]
   (1.5ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 18], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "kpi"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.853532"], ["updated_at", "2016-12-23 09:48:19.853532"]]
   (3.6ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (7.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 19], ["ru", "Сотрудники"], ["en", "Employee information"], ["name_eng", "logins_info"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.860686"], ["updated_at", "2016-12-23 09:48:19.860686"]]
   (6.8ms)  COMMIT
   (3.5ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 23], ["ru", "Active Directory"], ["en", "Active Directory"], ["name_eng", "ad_connections"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.881831"], ["updated_at", "2016-12-23 09:48:19.881831"]]
   (1.8ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 24], ["ru", "Логирование"], ["en", "Logs"], ["name_eng", "logs"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:19.888537"], ["updated_at", "2016-12-23 09:48:19.888537"]]
   (1.3ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "offices"
   (0.3ms)  SELECT COUNT(*) FROM "users"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_parameters"
   (0.2ms)  BEGIN
  SQL (1.8ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "server"], ["name", "Адрес сервера"], ["created_at", "2016-12-23 09:48:19.895048"], ["updated_at", "2016-12-23 09:48:19.895048"]]
   (1.3ms)  COMMIT
   (0.1ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "port"], ["name", "Порт"], ["created_at", "2016-12-23 09:48:19.900753"], ["updated_at", "2016-12-23 09:48:19.900753"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "base"], ["name", "Исходная точка подключения (base dn)"], ["created_at", "2016-12-23 09:48:19.904180"], ["updated_at", "2016-12-23 09:48:19.904180"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "ldap_parameters" ("parameter", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["parameter", "domain"], ["name", "Домен"], ["created_at", "2016-12-23 09:48:19.907672"], ["updated_at", "2016-12-23 09:48:19.907672"]]
   (1.4ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
Redirected to http://localhost:3007/common/index
Completed 302 Found in 170ms (ActiveRecord: 95.1ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 12:48:19 +0300
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (8.6ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:48:19.980807"], ["updated_at", "2016-12-23 09:48:19.980807"]]
   (5.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (30.4ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 133ms (Views: 118.0ms | ActiveRecord: 11.8ms)


Started GET "/common/sensor_install" for 127.0.0.1 at 2016-12-23 12:48:20 +0300
Processing by CommonController#sensor_install as HTML
  SQL (6.1ms)  DELETE FROM "menus"
  SQL (6.4ms)  DELETE FROM "sub_menus"
   (0.3ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["ru", "Сотрудники"], ["en", "Employees"], ["name_eng", "logins"], ["created_at", "2016-12-23 09:48:20.077713"], ["updated_at", "2016-12-23 09:48:20.077713"]]
   (5.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 1], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:20.087443"], ["updated_at", "2016-12-23 09:48:20.087443"]]
   (11.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 2], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:20.101505"], ["updated_at", "2016-12-23 09:48:20.101505"]]
   (1.7ms)  COMMIT
   (0.8ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 3], ["ru", "Карта сотрудника"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:20.115080"], ["updated_at", "2016-12-23 09:48:20.115080"]]
   (10.8ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 22], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["menu_id", 1], ["visible", 1], ["created_at", "2016-12-23 09:48:20.129571"], ["updated_at", "2016-12-23 09:48:20.129571"]]
   (28.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 2], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "operations"], ["created_at", "2016-12-23 09:48:20.160202"], ["updated_at", "2016-12-23 09:48:20.160202"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 5], ["ru", "Производительность"], ["en", "Performance"], ["name_eng", "perfomance"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:48:20.163842"], ["updated_at", "2016-12-23 09:48:20.163842"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 6], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:48:20.167684"], ["updated_at", "2016-12-23 09:48:20.167684"]]
   (1.5ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 7], ["ru", "Карта операции"], ["en", "Map"], ["name_eng", "map"], ["menu_id", 2], ["visible", 1], ["created_at", "2016-12-23 09:48:20.171424"], ["updated_at", "2016-12-23 09:48:20.171424"]]
   (1.6ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 3], ["ru", "Филиалы"], ["en", "Branches"], ["name_eng", "office"], ["created_at", "2016-12-23 09:48:20.177972"], ["updated_at", "2016-12-23 09:48:20.177972"]]
   (1.2ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 9], ["ru", "Активность"], ["en", "Activity"], ["name_eng", "activity"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:48:20.182935"], ["updated_at", "2016-12-23 09:48:20.182935"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 21], ["ru", "Филиал"], ["en", "Branch"], ["name_eng", "list"], ["menu_id", 3], ["visible", 1], ["created_at", "2016-12-23 09:48:20.186849"], ["updated_at", "2016-12-23 09:48:20.186849"]]
   (1.4ms)  COMMIT
   (0.3ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 4], ["ru", "Статистика"], ["en", "Statistics"], ["name_eng", "statistic"], ["created_at", "2016-12-23 09:48:20.190774"], ["updated_at", "2016-12-23 09:48:20.190774"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 10], ["ru", "Отчет"], ["en", "Report"], ["name_eng", "export"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:20.194309"], ["updated_at", "2016-12-23 09:48:20.194309"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 11], ["ru", "По операции"], ["en", "By operation"], ["name_eng", "operation"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:20.198455"], ["updated_at", "2016-12-23 09:48:20.198455"]]
   (1.2ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 12], ["ru", "По дням"], ["en", "By days"], ["name_eng", "day"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:20.201778"], ["updated_at", "2016-12-23 09:48:20.201778"]]
   (1.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 13], ["ru", "Сравнение дней"], ["en", "Days compare"], ["name_eng", "compare"], ["menu_id", 4], ["visible", 1], ["created_at", "2016-12-23 09:48:20.206342"], ["updated_at", "2016-12-23 09:48:20.206342"]]
   (1.3ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 20], ["ru", "Логирование Flextera"], ["en", "Flextera Logs"], ["name_eng", "flextera_log"], ["menu_id", 4], ["visible", 0], ["created_at", "2016-12-23 09:48:20.211915"], ["updated_at", "2016-12-23 09:48:20.211915"]]
   (1.1ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "menus" ("id", "ru", "en", "name_eng", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 5], ["ru", "Настройки"], ["en", "Settings"], ["name_eng", "settings"], ["created_at", "2016-12-23 09:48:20.215820"], ["updated_at", "2016-12-23 09:48:20.215820"]]
   (5.5ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 14], ["ru", "Оповещение по почте"], ["en", "Email notifications"], ["name_eng", "mail"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.226873"], ["updated_at", "2016-12-23 09:48:20.226873"]]
   (11.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 15], ["ru", "Пользователи"], ["en", "Users"], ["name_eng", "users"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.243747"], ["updated_at", "2016-12-23 09:48:20.243747"]]
   (6.0ms)  COMMIT
   (0.1ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 16], ["ru", "Группы пользователей"], ["en", "User groups"], ["name_eng", "user_groups"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.252018"], ["updated_at", "2016-12-23 09:48:20.252018"]]
   (5.4ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 17], ["ru", "Фильтры"], ["en", "Filters"], ["name_eng", "filters"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.259540"], ["updated_at", "2016-12-23 09:48:20.259540"]]
   (11.9ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 18], ["ru", "Операции"], ["en", "Operations"], ["name_eng", "kpi"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.275336"], ["updated_at", "2016-12-23 09:48:20.275336"]]
   (6.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 19], ["ru", "Сотрудники"], ["en", "Employee information"], ["name_eng", "logins_info"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.286331"], ["updated_at", "2016-12-23 09:48:20.286331"]]
   (1.3ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 23], ["ru", "Active Directory"], ["en", "Active Directory"], ["name_eng", "ad_connections"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.289795"], ["updated_at", "2016-12-23 09:48:20.289795"]]
   (1.7ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "sub_menus" ("id", "ru", "en", "name_eng", "menu_id", "visible", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["id", 24], ["ru", "Логирование"], ["en", "Logs"], ["name_eng", "logs"], ["menu_id", 5], ["visible", 1], ["created_at", "2016-12-23 09:48:20.294017"], ["updated_at", "2016-12-23 09:48:20.294017"]]
   (18.5ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "offices"
   (0.4ms)  SELECT COUNT(*) FROM "users"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_parameters"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
Redirected to http://localhost:3007/common/index
Completed 302 Found in 257ms (ActiveRecord: 171.3ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 12:48:20 +0300
Processing by CommonController#index as HTML
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (3.5ms)
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:48:20.374112"], ["updated_at", "2016-12-23 09:48:20.374112"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (15.1ms)
  Rendered shared/_loading.html.erb (0.9ms)
Completed 200 OK in 82ms (Views: 73.9ms | ActiveRecord: 6.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:48:20 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:48:20 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:48:20 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:48:20.970320"], ["updated_at", "2016-12-23 09:48:20.970320"]]
   (8.0ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 9.5ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 12:48:21 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (528.5ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (245.7ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (334.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (215.6ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (277.5ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (228.9ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (175.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (167.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (166.0ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2376ms (Views: 0.3ms | ActiveRecord: 2342.2ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:48:23 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (6.1ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (6.0ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (1.0ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered settings/ad_connections.html.erb within layouts/application (2.1ms)
   (1.5ms)  BEGIN
  SQL (1.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:48:23.918833"], ["updated_at", "2016-12-23 09:48:23.918833"]]
   (4.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (1.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (3.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (1.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (5.8ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (3.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (3.0ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (45.9ms)
  Rendered shared/_loading.html.erb (3.6ms)
Completed 200 OK in 176ms (Views: 128.4ms | ActiveRecord: 42.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:48:24 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:48:24 +0300


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:57:26 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (7.5ms)  SELECT "name", "ldap_user_groups"."ldap_group_name", "group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
PG::UndefinedColumn: ERROR:  column "name" does not exist
LINE 1: SELECT "name", "ldap_user_groups"."ldap_group_name", "group_...
               ^
: SELECT "name", "ldap_user_groups"."ldap_group_name", "group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (35.6ms)
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 108ms (Views: 0.5ms | ActiveRecord: 43.8ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:57:45 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (7.1ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
PG::UndefinedColumn: ERROR:  column "group_id" does not exist
LINE 1: ..."name_rus", "ldap_user_groups"."ldap_group_name", "group_id"...
                                                             ^
: SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (11.7ms)
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 28ms (Views: 0.3ms | ActiveRecord: 9.5ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:58:10 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (14.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (4.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (2.3ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (17.3ms)
   (0.2ms)  BEGIN
  SQL (6.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:58:10.526966"], ["updated_at", "2016-12-23 09:58:10.526966"]]
   (13.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (64.5ms)
  Rendered shared/_loading.html.erb (2.9ms)
Completed 200 OK in 266ms (Views: 176.2ms | ActiveRecord: 82.7ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:58:10 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:58:11 +0300


Started GET "/settings/user_groups" for 127.0.0.1 at 2016-12-23 12:58:16 +0300
Processing by UserGroupsController#index as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  UserGroup Load (0.5ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (5.9ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:58:16.947623"], ["updated_at", "2016-12-23 09:58:16.947623"]]
   (5.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (1.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.8ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (2.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (28.0ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 96ms (Views: 75.7ms | ActiveRecord: 15.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:58:17 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:58:17 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:58:17 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:58:17.613924"], ["updated_at", "2016-12-23 09:58:17.613924"]]
   (5.7ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 23ms (Views: 1.1ms | ActiveRecord: 7.5ms)


Started GET "/settings/users" for 127.0.0.1 at 2016-12-23 12:58:27 +0300
Processing by UsersController#index as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.5ms)  SELECT "users".* FROM "users" WHERE (ad_user is null)
  UserGroup Load (2.8ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered users/index.html.erb within layouts/application (7.6ms)
   (0.8ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/users"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"users\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:58:27.608249"], ["updated_at", "2016-12-23 09:58:27.608249"]]
   (5.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.9ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (23.0ms)
  Rendered shared/_loading.html.erb (1.5ms)
Completed 200 OK in 94ms (Views: 74.6ms | ActiveRecord: 15.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:58:27 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:58:28 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:58:28 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.4ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:58:28.156277"], ["updated_at", "2016-12-23 09:58:28.156277"]]
   (1.4ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 14ms (Views: 0.4ms | ActiveRecord: 3.4ms)


Started GET "/settings/user_groups" for 127.0.0.1 at 2016-12-23 12:58:31 +0300
Processing by UserGroupsController#index as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  UserGroup Load (0.4ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (2.4ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:58:31.178182"], ["updated_at", "2016-12-23 09:58:31.178182"]]
   (5.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (20.9ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 78ms (Views: 61.5ms | ActiveRecord: 12.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:58:31 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:58:31 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:58:31 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:58:31.909578"], ["updated_at", "2016-12-23 09:58:31.909578"]]
   (6.5ms)  COMMIT
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 8.6ms)


Started DELETE "/settings/user_groups/2" for 127.0.0.1 at 2016-12-23 12:58:33 +0300
Processing by UserGroupsController#destroy as HTML
  Parameters: {"authenticity_token"=>"IdG26fTr5LZdrHd6rX3Y6hz9OkncAA/rviuUun0G2sIwA45LUngj+fKW414UIQxtC9fzIBhiXkp9jZXWStFZNA==", "id"=>"2"}
  Menu Load (4.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  UserGroup Load (1.4ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 2]]
   (2.7ms)  BEGIN
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."user_group_id" = $1  [["user_group_id", 2]]
  LdapUserGroup Load (0.9ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1 LIMIT 1  [["user_group_id", 2]]
  SQL (1.8ms)  DELETE FROM "ldap_user_groups" WHERE "ldap_user_groups"."id" = $1  [["id", 2]]
  SQL (0.9ms)  DELETE FROM "user_groups" WHERE "user_groups"."id" = $1  [["id", 2]]
   (19.8ms)  COMMIT
Redirected to http://localhost:3007/settings/user_groups
Completed 302 Found in 72ms (ActiveRecord: 34.0ms)


Started GET "/settings/user_groups" for 127.0.0.1 at 2016-12-23 12:58:33 +0300
Processing by UserGroupsController#index as HTML
  Menu Load (3.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (1.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (5.1ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  UserGroup Load (1.9ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (7.5ms)
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 09:58:34.165864"], ["updated_at", "2016-12-23 09:58:34.165864"]]
   (10.7ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.7ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (40.6ms)
  Rendered shared/_loading.html.erb (1.7ms)
Completed 200 OK in 278ms (Views: 229.4ms | ActiveRecord: 28.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:58:34 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:58:34 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 12:58:34 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 09:58:34.773932"], ["updated_at", "2016-12-23 09:58:34.773932"]]
   (1.3ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 3.3ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 12:58:36 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.5ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (3.2ms)
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 09:58:36.729746"], ["updated_at", "2016-12-23 09:58:36.729746"]]
   (6.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (13.8ms)
  Rendered shared/_loading.html.erb (1.6ms)
Completed 200 OK in 75ms (Views: 56.1ms | ActiveRecord: 12.7ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 12:58:36 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 12:58:37 +0300


Started GET "/settings/user_groups" for 127.0.0.1 at 2016-12-23 13:02:58 +0300
Processing by UserGroupsController#index as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  UserGroup Load (0.4ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (8.9ms)
   (0.2ms)  BEGIN
  SQL (10.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 10:02:58.534549"], ["updated_at", "2016-12-23 10:02:58.534549"]]
   (9.7ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.3ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (1.2ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (78.8ms)
  Rendered shared/_loading.html.erb (2.8ms)
Completed 200 OK in 298ms (Views: 221.4ms | ActiveRecord: 45.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:02:58 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:02:59 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 13:02:59 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 10:02:59.200954"], ["updated_at", "2016-12-23 10:02:59.200954"]]
   (6.1ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  BEGIN
   (7.8ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 32ms (Views: 2.0ms | ActiveRecord: 15.5ms)


Started GET "/settings/user_groups/new" for 127.0.0.1 at 2016-12-23 13:03:00 +0300
Processing by UserGroupsController#new as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered user_groups/new.html.erb within layouts/application (10.2ms)
   (2.6ms)  BEGIN
  SQL (1.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups/new"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"new\"}"], ["created_at", "2016-12-23 10:03:00.261706"], ["updated_at", "2016-12-23 10:03:00.261706"]]
   (13.8ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.6ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (22.1ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 115ms (Views: 84.6ms | ActiveRecord: 24.1ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 13:03:00 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 10:03:00.376173"], ["updated_at", "2016-12-23 10:03:00.376173"]]
   (5.4ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.7ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 7.6ms)


Started POST "/settings/user_groups" for 127.0.0.1 at 2016-12-23 13:03:05 +0300
Processing by UserGroupsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"tD47WJMs6HaIyW0daIKtYuVabYqzn774p7DpBS/YJj6l7AP6Nb8vOSfz+TnR3nnl8nCk43f971lkFuhpGA+lyA==", "group"=>{"name_rus"=>"Пользователи"}, "commit"=>"Создать"}
   (0.2ms)  BEGIN
  SQL (1.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"utf8\"=>\"✓\", \"authenticity_token\"=>\"tD47WJMs6HaIyW0daIKtYuVabYqzn774p7DpBS/YJj6l7AP6Nb8vOSfz+TnR3nnl8nCk43f971lkFuhpGA+lyA==\", \"group\"=>{\"name_rus\"=>\"Пользователи\"}, \"commit\"=>\"Создать\", \"controller\"=>\"user_groups\", \"action\"=>\"create\"}"], ["created_at", "2016-12-23 10:03:05.746778"], ["updated_at", "2016-12-23 10:03:05.746778"]]
   (6.0ms)  COMMIT
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
  SQL (16.5ms)  INSERT INTO "user_groups" ("name_rus", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name_rus", "Пользователи"], ["created_at", "2016-12-23 10:03:05.764062"], ["updated_at", "2016-12-23 10:03:05.764062"]]
   (6.1ms)  COMMIT
Redirected to http://localhost:3007/settings/user_groups
Completed 302 Found in 47ms (ActiveRecord: 31.1ms)


Started GET "/settings/user_groups" for 127.0.0.1 at 2016-12-23 13:03:05 +0300
Processing by UserGroupsController#index as HTML
  Menu Load (1.1ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  UserGroup Load (0.5ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (3.1ms)
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 10:03:05.853785"], ["updated_at", "2016-12-23 10:03:05.853785"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.9ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.6ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (25.9ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 91ms (Views: 74.8ms | ActiveRecord: 9.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:03:06 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:03:06 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 13:03:06 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 10:03:06.462211"], ["updated_at", "2016-12-23 10:03:06.462211"]]
   (6.4ms)  COMMIT
  User Load (2.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 10.2ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:03:09 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_groups"
   (3.9ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  UserGroup Load (6.2ms)  SELECT "user_groups".* FROM "user_groups" WHERE (id NOT IN #<LdapUserGroup::ActiveRecord_Relation:0x007ffd81d13dd8>)
PG::SyntaxError: ERROR:  syntax error at or near "#<"
LINE 1: ...ser_groups".* FROM "user_groups" WHERE (id NOT IN #<LdapUser...
                                                             ^
: SELECT "user_groups".* FROM "user_groups" WHERE (id NOT IN #<LdapUserGroup::ActiveRecord_Relation:0x007ffd81d13dd8>)
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 34ms (Views: 0.8ms | ActiveRecord: 14.8ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:05:31 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_groups"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapUserGroup Load (1.1ms)  SELECT "ldap_user_groups"."user_group_id" FROM "ldap_user_groups"
  UserGroup Load (7.0ms)  SELECT "user_groups".* FROM "user_groups" WHERE (id NOT IN [1])
PG::SyntaxError: ERROR:  syntax error at or near "["
LINE 1: ...ECT "user_groups".* FROM "user_groups" WHERE (id NOT IN [1])
                                                                   ^
: SELECT "user_groups".* FROM "user_groups" WHERE (id NOT IN [1])
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 62ms (Views: 0.6ms | ActiveRecord: 15.5ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:07:58 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_groups"
   (0.5ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapUserGroup Load (1.1ms)  SELECT "ldap_user_groups"."user_group_id" FROM "ldap_user_groups"
  UserGroup Load (0.4ms)  SELECT "user_groups".* FROM "user_groups" WHERE (id NOT IN (-1,1))
   (0.2ms)  BEGIN
  SQL (11.9ms)  INSERT INTO "ldap_user_groups" ("user_group_id", "order_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["user_group_id", 3], ["order_id", 3], ["created_at", "2016-12-23 10:07:58.355177"], ["updated_at", "2016-12-23 10:07:58.355177"]]
   (6.0ms)  COMMIT
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.5ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (20.5ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 10:07:58.453965"], ["updated_at", "2016-12-23 10:07:58.453965"]]
   (6.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (12.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.6ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (82.3ms)
  Rendered shared/_loading.html.erb (3.3ms)
Completed 200 OK in 357ms (Views: 241.9ms | ActiveRecord: 65.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:07:58 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:07:59 +0300


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:08:02 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.6ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (2.6ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 10:08:02.491813"], ["updated_at", "2016-12-23 10:08:02.491813"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.9ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (1.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (7.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (29.4ms)
  Rendered shared/_loading.html.erb (1.2ms)
Completed 200 OK in 101ms (Views: 74.1ms | ActiveRecord: 21.7ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:08:02 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:08:03 +0300


Started GET "/settings/user_groups" for 127.0.0.1 at 2016-12-23 13:08:05 +0300
Processing by UserGroupsController#index as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  UserGroup Load (0.3ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (4.2ms)
   (0.3ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 10:08:05.955428"], ["updated_at", "2016-12-23 10:08:05.955428"]]
   (1.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.7ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (25.2ms)
  Rendered shared/_loading.html.erb (2.2ms)
Completed 200 OK in 98ms (Views: 85.5ms | ActiveRecord: 7.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:08:06 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:08:06 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 13:08:06 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (25.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 10:08:06.728065"], ["updated_at", "2016-12-23 10:08:06.728065"]]
   (8.0ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (2.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.6ms)  BEGIN
   (0.5ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 74ms (Views: 4.9ms | ActiveRecord: 39.3ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:08:09 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (2.7ms)
   (0.7ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 10:08:09.696439"], ["updated_at", "2016-12-23 10:08:09.696439"]]
   (6.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (16.6ms)
  Rendered shared/_loading.html.erb (1.3ms)
Completed 200 OK in 95ms (Views: 73.4ms | ActiveRecord: 14.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:08:09 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:08:10 +0300


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:10:15 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.7ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.6ms)  SELECT COUNT(*) FROM "user_groups"
   (0.5ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (38.5ms)
  Rendered text template (0.1ms)
Completed 500 Internal Server Error in 104ms (Views: 1.0ms | ActiveRecord: 4.1ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:11:04 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  Rendered settings/ad_connections.html.erb within layouts/application (3.4ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 10:11:04.611124"], ["updated_at", "2016-12-23 10:11:04.611124"]]
   (6.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.6ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (22.6ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 118ms (Views: 98.6ms | ActiveRecord: 13.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:11:04 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:11:05 +0300


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:50:49 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.6ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (23.1ms)
   (0.3ms)  BEGIN
  SQL (6.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 10:50:49.853296"], ["updated_at", "2016-12-23 10:50:49.853296"]]
   (6.1ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (1.0ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (86.3ms)
  Rendered shared/_loading.html.erb (2.8ms)
Completed 200 OK in 304ms (Views: 225.9ms | ActiveRecord: 40.3ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:50:50 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:50:50 +0300


Started POST "/settings/update_ad_settings" for 127.0.0.1 at 2016-12-23 13:51:15 +0300
Processing by SettingsController#update_ad_settings as */*
  Parameters: {"parameters"=>{"0"=>{"id"=>"", "parameter"=>"server", "value"=>""}, "1"=>{"id"=>"", "parameter"=>"port", "value"=>""}, "2"=>{"id"=>"", "parameter"=>"base", "value"=>""}, "3"=>{"id"=>"", "parameter"=>"domain", "value"=>""}}, "groups"=>{"0"=>{"id"=>"", "user_group_id"=>"1", "ldap_group_name"=>""}, "1"=>{"id"=>"", "user_group_id"=>"3", "ldap_group_name"=>""}}}
   (1.6ms)  BEGIN
  SQL (2.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/update_ad_settings"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"parameters\"=>{\"0\"=>{\"id\"=>\"\", \"parameter\"=>\"server\", \"value\"=>\"\"}, \"1\"=>{\"id\"=>\"\", \"parameter\"=>\"port\", \"value\"=>\"\"}, \"2\"=>{\"id\"=>\"\", \"parameter\"=>\"base\", \"value\"=>\"\"}, \"3\"=>{\"id\"=>\"\", \"parameter\"=>\"domain\", \"value\"=>\"\"}}, \"groups\"=>{\"0\"=>{\"id\"=>\"\", \"user_group_id\"=>\"1\", \"ldap_group_name\"=>\"\"}, \"1\"=>{\"id\"=>\"\", \"user_group_id\"=>\"3\", \"ldap_group_name\"=>\"\"}}, \"controller\"=>\"settings\", \"action\"=>\"update_ad_settings\"}"], ["created_at", "2016-12-23 10:51:15.390504"], ["updated_at", "2016-12-23 10:51:15.390504"]]
   (10.1ms)  COMMIT
  Menu Load (2.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (12.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (3.7ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (3.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 66ms (Views: 0.8ms | ActiveRecord: 36.1ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:53:50 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (1.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_groups"
   (2.2ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (4.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (5.2ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (7.2ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (65.8ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (133.2ms)
   (0.3ms)  BEGIN
  SQL (6.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 10:53:50.413125"], ["updated_at", "2016-12-23 10:53:50.413125"]]
   (5.7ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.9ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.6ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (1.8ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (38.9ms)
  Rendered shared/_loading.html.erb (8.5ms)
Completed 200 OK in 382ms (Views: 260.9ms | ActiveRecord: 109.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:53:51 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:53:51 +0300


Started POST "/settings/update_ad_settings" for 127.0.0.1 at 2016-12-23 13:53:52 +0300
Processing by SettingsController#update_ad_settings as */*
  Parameters: {"parameters"=>"[{\"id\":null,\"parameter\":\"server\",\"value\":\"\"},{\"id\":null,\"parameter\":\"port\",\"value\":\"\"},{\"id\":null,\"parameter\":\"base\",\"value\":\"\"},{\"id\":null,\"parameter\":\"domain\",\"value\":\"\"}]", "groups"=>"[{\"id\":null,\"user_group_id\":1,\"ldap_group_name\":\"\"},{\"id\":null,\"user_group_id\":3,\"ldap_group_name\":\"\"}]"}
   (0.2ms)  BEGIN
  SQL (0.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/update_ad_settings"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"parameters\"=>\"[{\\\"id\\\":null,\\\"parameter\\\":\\\"server\\\",\\\"value\\\":\\\"\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"port\\\",\\\"value\\\":\\\"\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"base\\\",\\\"value\\\":\\\"\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"domain\\\",\\\"value\\\":\\\"\\\"}]\", \"groups\"=>\"[{\\\"id\\\":null,\\\"user_group_id\\\":1,\\\"ldap_group_name\\\":\\\"\\\"},{\\\"id\\\":null,\\\"user_group_id\\\":3,\\\"ldap_group_name\\\":\\\"\\\"}]\", \"controller\"=>\"settings\", \"action\"=>\"update_ad_settings\"}"], ["created_at", "2016-12-23 10:53:52.650162"], ["updated_at", "2016-12-23 10:53:52.650162"]]
   (5.9ms)  COMMIT
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (0.7ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
   (2.1ms)  BEGIN
  SQL (0.8ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", ""], ["updated_at", "2016-12-23 10:53:52.679179"], ["id", 5]]
   (6.8ms)  COMMIT
  LdapParameter Load (6.7ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "port"]]
   (0.6ms)  BEGIN
  SQL (0.4ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", ""], ["updated_at", "2016-12-23 10:53:52.715131"], ["id", 6]]
   (6.2ms)  COMMIT
  LdapParameter Load (1.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "base"]]
   (0.2ms)  BEGIN
  SQL (1.2ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", ""], ["updated_at", "2016-12-23 10:53:52.727721"], ["id", 7]]
   (1.2ms)  COMMIT
  LdapParameter Load (51.8ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "domain"]]
   (0.5ms)  BEGIN
  SQL (0.7ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", ""], ["updated_at", "2016-12-23 10:53:52.790735"], ["id", 8]]
   (6.5ms)  COMMIT
  LdapUserGroup Load (0.5ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.4ms)  BEGIN
  SQL (0.3ms)  UPDATE "ldap_user_groups" SET "ldap_group_name" = $1, "updated_at" = $2 WHERE "ldap_user_groups"."id" = $3  [["ldap_group_name", ""], ["updated_at", "2016-12-23 10:53:52.807796"], ["id", 1]]
   (5.7ms)  COMMIT
  LdapUserGroup Load (0.3ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 3]]
   (0.2ms)  BEGIN
  SQL (0.4ms)  UPDATE "ldap_user_groups" SET "ldap_group_name" = $1, "updated_at" = $2 WHERE "ldap_user_groups"."id" = $3  [["ldap_group_name", ""], ["updated_at", "2016-12-23 10:53:52.826188"], ["id", 3]]
   (6.1ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 191ms (Views: 0.5ms | ActiveRecord: 109.7ms)


Started POST "/settings/update_ad_settings" for 127.0.0.1 at 2016-12-23 13:54:28 +0300
Processing by SettingsController#update_ad_settings as */*
  Parameters: {"parameters"=>"[{\"id\":null,\"parameter\":\"server\",\"value\":\"10.1.2.38\"},{\"id\":null,\"parameter\":\"port\",\"value\":\"389\"},{\"id\":null,\"parameter\":\"base\",\"value\":\"DC=diasoft,DC=ru\"},{\"id\":null,\"parameter\":\"domain\",\"value\":\"diasoft.ru\"}]", "groups"=>"[{\"id\":null,\"user_group_id\":1,\"ldap_group_name\":\"\"},{\"id\":null,\"user_group_id\":3,\"ldap_group_name\":\"\"}]"}
   (0.3ms)  BEGIN
  SQL (0.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/update_ad_settings"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"parameters\"=>\"[{\\\"id\\\":null,\\\"parameter\\\":\\\"server\\\",\\\"value\\\":\\\"10.1.2.38\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"port\\\",\\\"value\\\":\\\"389\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"base\\\",\\\"value\\\":\\\"DC=diasoft,DC=ru\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"domain\\\",\\\"value\\\":\\\"diasoft.ru\\\"}]\", \"groups\"=>\"[{\\\"id\\\":null,\\\"user_group_id\\\":1,\\\"ldap_group_name\\\":\\\"\\\"},{\\\"id\\\":null,\\\"user_group_id\\\":3,\\\"ldap_group_name\\\":\\\"\\\"}]\", \"controller\"=>\"settings\", \"action\"=>\"update_ad_settings\"}"], ["created_at", "2016-12-23 10:54:28.257220"], ["updated_at", "2016-12-23 10:54:28.257220"]]
   (1.3ms)  COMMIT
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.7ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (5.2ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
   (0.2ms)  BEGIN
  SQL (1.0ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", "10.1.2.38"], ["updated_at", "2016-12-23 10:54:28.282433"], ["id", 5]]
   (6.9ms)  COMMIT
  LdapParameter Load (0.4ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "port"]]
   (0.3ms)  BEGIN
  SQL (0.4ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", "389"], ["updated_at", "2016-12-23 10:54:28.298108"], ["id", 6]]
   (5.9ms)  COMMIT
  LdapParameter Load (0.4ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "base"]]
   (0.2ms)  BEGIN
  SQL (0.3ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", "DC=diasoft,DC=ru"], ["updated_at", "2016-12-23 10:54:28.311460"], ["id", 7]]
   (1.2ms)  COMMIT
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "domain"]]
   (0.3ms)  BEGIN
  SQL (1.3ms)  UPDATE "ldap_parameters" SET "value" = $1, "updated_at" = $2 WHERE "ldap_parameters"."id" = $3  [["value", "diasoft.ru"], ["updated_at", "2016-12-23 10:54:28.318242"], ["id", 8]]
   (4.6ms)  COMMIT
  LdapUserGroup Load (1.6ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (6.2ms)  BEGIN
   (1.9ms)  COMMIT
  LdapUserGroup Load (9.9ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 3]]
   (0.4ms)  BEGIN
   (1.1ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 113ms (Views: 0.9ms | ActiveRecord: 53.8ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 13:54:31 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (19.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (14.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (15.1ms)  SELECT COUNT(*) FROM "user_groups"
   (1.6ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (1.0ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (4.5ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (1.3ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (1.0ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (24.1ms)
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 10:54:31.374834"], ["updated_at", "2016-12-23 10:54:31.374834"]]
   (1.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (1.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (1.1ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (25.6ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 280ms (Views: 176.0ms | ActiveRecord: 67.1ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 13:54:31 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 13:54:32 +0300


Started POST "/sessions/logout" for 127.0.0.1 at 2016-12-23 14:02:49 +0300
Processing by SessionsController#logout as */*
Redirected to http://localhost:3007/sessions/login
Completed 200 OK in 3ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:02:49 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (17.9ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.7ms)
Completed 200 OK in 89ms (Views: 88.5ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:02:50 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (41.3ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.2ms)
Completed 200 OK in 77ms (Views: 74.0ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:02:50 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:02:53 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"BfrCXK/OkvN+5CLiLck6cHDEK+XTO8YZBsUbl/m1Fm8UKPr+CV1VvNHetsaUle73Z+7ijBdZl7jFYxr7zmKVmQ==", "username"=>"sensor", "login_password"=>"[FILTERED]", "commit"=>"Login"}
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
  LdapParameter Load (4.2ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
   (0.2ms)  BEGIN
  SQL (6.5ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 94], ["last_login", "2016-12-23 14:02:53.000000"], ["session_id", "2f625c57e63e475c2741e29f40072ae167b2c303"], ["updated_at", "2016-12-23 11:02:53.127355"], ["id", 1]]
   (6.7ms)  COMMIT
Redirected to http://localhost:3007/common/index
Completed 302 Found in 95ms (ActiveRecord: 23.3ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 14:02:53 +0300
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (8.3ms)
   (0.7ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 11:02:53.222416"], ["updated_at", "2016-12-23 11:02:53.222416"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.3ms)
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (1.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (26.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (82.0ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 268ms (Views: 195.0ms | ActiveRecord: 69.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:02:53 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:02:54 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 14:02:54 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 11:02:54.154492"], ["updated_at", "2016-12-23 11:02:54.154492"]]
   (6.2ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.8ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 21ms (Views: 1.2ms | ActiveRecord: 8.7ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:02:54 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (43.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (1517.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (353.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (408.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (224.2ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (251.9ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (205.5ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (616.7ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (514.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (434.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 5072ms (Views: 0.5ms | ActiveRecord: 4934.4ms)


Started POST "/sessions/logout" for 127.0.0.1 at 2016-12-23 14:03:26 +0300
Processing by SessionsController#logout as */*
Redirected to http://localhost:3007/sessions/login
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:03:26 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (8.0ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 67ms (Views: 66.0ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:03:27 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (15.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 99ms (Views: 98.5ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:03:27 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:03:28 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:03:42 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"5sF7p3bDMdZgBqWJwVXsTyPqy3c5aig3re0xoXIsuyT3E0MF0FD2mc88Ma14CTjINMACHv0IeZZuSzDNRfs40g==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "commit"=>"Login"}
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "aignatov"]]
  LdapParameter Load (6.1ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered sessions/login.html.erb within layouts/sessions (4.4ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 87ms (Views: 37.8ms | ActiveRecord: 6.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:03:43 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:03:43 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:04:02 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"g8Ahp3ChX90MeURNA6ASA9ldw/3lZ9an1cdLNTGMOruSEhkF1jKYkqND0Gm6/MaEzncKlCEFhwYWYUpZBlu5TQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "commit"=>"Login"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "aignatov"]]
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  Rendered sessions/login.html.erb within layouts/sessions (7.7ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 63ms (Views: 37.1ms | ActiveRecord: 0.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:04:02 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:04:02 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:04:15 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"qOToyiQ0hYYeUB0FfexPVXdUhIGROBcFQBnCo1myURy5NtBogqdCybFqiSHEsJvSYH5N6FVaRqSDv8PPbmXS6g==", "username"=>"sensor", "login_password"=>"[FILTERED]", "commit"=>"Login"}
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
   (0.4ms)  BEGIN
  SQL (0.5ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 95], ["last_login", "2016-12-23 14:04:15.000000"], ["session_id", "10b2be237feda8ebf5190c5a3c5e1770138fb8ae"], ["updated_at", "2016-12-23 11:04:15.606808"], ["id", 1]]
   (5.7ms)  COMMIT
Redirected to http://localhost:3007/common/index
Completed 302 Found in 23ms (ActiveRecord: 7.4ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 14:04:15 +0300
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (10.1ms)
   (0.5ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 11:04:15.709926"], ["updated_at", "2016-12-23 11:04:15.709926"]]
   (5.8ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (11.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (6.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (1.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (6.2ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (6.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (6.2ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (66.7ms)
  Rendered shared/_loading.html.erb (1.6ms)
Completed 200 OK in 201ms (Views: 150.0ms | ActiveRecord: 47.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:04:16 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:04:16 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 14:04:16 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 11:04:16.523474"], ["updated_at", "2016-12-23 11:04:16.523474"]]
   (6.2ms)  COMMIT
  User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  BEGIN
   (0.7ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 68ms (Views: 2.2ms | ActiveRecord: 9.5ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:04:17 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (3.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (5.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (494.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (308.7ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (305.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (275.5ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (216.7ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (185.0ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (193.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (267.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (189.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2474ms (Views: 0.4ms | ActiveRecord: 2443.5ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2016-12-23 14:04:19 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (1.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (8.7ms)  SELECT COUNT(*) FROM "user_groups"
   (0.6ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (2.8ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.9ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (1.5ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (1.5ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (32.9ms)
   (0.9ms)  BEGIN
  SQL (2.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 11:04:19.809772"], ["updated_at", "2016-12-23 11:04:19.809772"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.2ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (2.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (2.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (1.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.9ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (27.1ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 300ms (Views: 150.5ms | ActiveRecord: 81.4ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:04:20 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:04:20 +0300


Started POST "/settings/update_ad_settings" for 127.0.0.1 at 2016-12-23 14:04:27 +0300
Processing by SettingsController#update_ad_settings as */*
  Parameters: {"parameters"=>"[{\"id\":null,\"parameter\":\"server\",\"value\":\"10.1.2.38\"},{\"id\":null,\"parameter\":\"port\",\"value\":\"389\"},{\"id\":null,\"parameter\":\"base\",\"value\":\"DC=diasoft,DC=ru\"},{\"id\":null,\"parameter\":\"domain\",\"value\":\"diasoft.ru\"}]", "groups"=>"[{\"id\":null,\"user_group_id\":1,\"ldap_group_name\":\"Департамент Системная Интеграция\"},{\"id\":null,\"user_group_id\":3,\"ldap_group_name\":\"\"}]"}
   (0.8ms)  BEGIN
  SQL (13.1ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/update_ad_settings"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"parameters\"=>\"[{\\\"id\\\":null,\\\"parameter\\\":\\\"server\\\",\\\"value\\\":\\\"10.1.2.38\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"port\\\",\\\"value\\\":\\\"389\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"base\\\",\\\"value\\\":\\\"DC=diasoft,DC=ru\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"domain\\\",\\\"value\\\":\\\"diasoft.ru\\\"}]\", \"groups\"=>\"[{\\\"id\\\":null,\\\"user_group_id\\\":1,\\\"ldap_group_name\\\":\\\"Департамент Системная Интеграция\\\"},{\\\"id\\\":null,\\\"user_group_id\\\":3,\\\"ldap_group_name\\\":\\\"\\\"}]\", \"controller\"=>\"settings\", \"action\"=>\"update_ad_settings\"}"], ["created_at", "2016-12-23 11:04:27.477179"], ["updated_at", "2016-12-23 11:04:27.477179"]]
   (3.0ms)  COMMIT
  Menu Load (1.6ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (2.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.9ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  LdapParameter Load (1.5ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
   (1.6ms)  BEGIN
   (3.3ms)  COMMIT
  LdapParameter Load (0.9ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "port"]]
   (0.5ms)  BEGIN
   (0.6ms)  COMMIT
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "base"]]
   (2.5ms)  BEGIN
   (0.2ms)  COMMIT
  LdapParameter Load (0.9ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "domain"]]
   (0.4ms)  BEGIN
   (0.8ms)  COMMIT
  LdapUserGroup Load (2.7ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (1.1ms)  BEGIN
  SQL (2.4ms)  UPDATE "ldap_user_groups" SET "ldap_group_name" = $1, "updated_at" = $2 WHERE "ldap_user_groups"."id" = $3  [["ldap_group_name", "Департамент Системная Интеграция"], ["updated_at", "2016-12-23 11:04:27.555234"], ["id", 1]]
   (6.9ms)  COMMIT
  LdapUserGroup Load (0.5ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 3]]
   (0.4ms)  BEGIN
   (0.7ms)  COMMIT
  Rendered text template (0.1ms)
Completed 200 OK in 105ms (Views: 1.5ms | ActiveRecord: 49.6ms)


Started POST "/sessions/logout" for 127.0.0.1 at 2016-12-23 14:08:56 +0300
Processing by SessionsController#logout as */*
Redirected to http://localhost:3007/sessions/login
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:08:56 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (12.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.7ms)
Completed 200 OK in 96ms (Views: 94.9ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:08:57 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (5.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (4.9ms)
Completed 200 OK in 60ms (Views: 58.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:08:57 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:09:00 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (4.1ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 58ms (Views: 56.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:09:00 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:09:00 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:09:43 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (7.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 84ms (Views: 83.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:09:44 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:09:44 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:11:30 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (16.2ms)
  Rendered shared/_colorlist.html.erb (0.2ms)
  Rendered shared/_loading.html.erb (3.1ms)
Completed 200 OK in 143ms (Views: 141.5ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:11:31 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:11:31 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:11:45 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (25.3ms)
  Rendered shared/_colorlist.html.erb (0.5ms)
  Rendered shared/_loading.html.erb (4.8ms)
Completed 200 OK in 112ms (Views: 111.0ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:11:46 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:11:46 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:12:19 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (13.6ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.5ms)
Completed 200 OK in 89ms (Views: 88.5ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:12:19 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:12:19 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:12:38 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (5.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.6ms)
Completed 200 OK in 36ms (Views: 35.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:12:39 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:12:39 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:13:09 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (32.8ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (5.7ms)
Completed 200 OK in 138ms (Views: 136.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:13:10 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:13:10 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:13:44 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (9.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 63ms (Views: 62.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:13:44 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:13:45 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:14:05 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (20.6ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (4.1ms)
Completed 200 OK in 105ms (Views: 104.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:14:06 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:14:06 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:14:12 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (4.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.6ms)
Completed 200 OK in 39ms (Views: 38.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:14:13 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:14:13 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:16:38 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (4.0ms)
  Rendered sessions/login.html.erb within layouts/sessions (15.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.2ms)
Completed 200 OK in 73ms (Views: 71.6ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:16:39 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:16:39 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:16:54 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (13.6ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (4.0ms)
Completed 200 OK in 91ms (Views: 90.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:16:55 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:16:55 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:17:12 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (13.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 90ms (Views: 88.9ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:17:13 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:17:13 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:17:30 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.3ms)
  Rendered sessions/login.html.erb within layouts/sessions (13.4ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.3ms)
Completed 200 OK in 66ms (Views: 64.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:17:31 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:17:31 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:17:49 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.7ms)
  Rendered sessions/login.html.erb within layouts/sessions (38.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.6ms)
Completed 200 OK in 131ms (Views: 130.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:17:50 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:17:50 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:18:31 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (16.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (4.2ms)
Completed 200 OK in 113ms (Views: 111.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:18:31 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:18:32 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:18:35 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (5.9ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:18:36 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:18:36 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:18:39 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (7.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.7ms)
Completed 200 OK in 35ms (Views: 34.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:18:39 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:18:39 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:18:45 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.3ms)
  Rendered sessions/login.html.erb within layouts/sessions (5.9ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.5ms)
Completed 200 OK in 34ms (Views: 33.7ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:18:45 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:18:46 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:18:48 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.3ms)
  Rendered sessions/login.html.erb within layouts/sessions (9.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.3ms)
Completed 200 OK in 39ms (Views: 38.5ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:18:48 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:18:49 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:19:55 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (10.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.7ms)
Completed 200 OK in 77ms (Views: 75.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:19:56 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:19:56 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:22:31 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (15.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 84ms (Views: 82.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:22:32 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:22:32 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:23:12 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (23.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.7ms)
Completed 200 OK in 178ms (Views: 175.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:23:13 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:23:13 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:23:48 +0300
Processing by SessionsController#login as HTML
  Rendered sessions/login.html.erb within layouts/sessions (7.7ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms)

SyntaxError (/Users/Anton/git/sensor/app/views/sessions/login.html.erb:34: syntax error, unexpected ',', expecting ')'
...heck_box_tag(:ad_auth_check,0,, style: "display:none") );@ou...
...                               ^
/Users/Anton/git/sensor/app/views/sessions/login.html.erb:34: syntax error, unexpected ')', expecting keyword_end
...ck,0,, style: "display:none") );@output_buffer.safe_append='
...                               ^):
  app/views/sessions/login.html.erb:34: syntax error, unexpected ',', expecting ')'
  app/views/sessions/login.html.erb:34: syntax error, unexpected ')', expecting keyword_end


  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (16.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (11.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (131.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_markup.html.erb (2.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.7ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/style.css.erb within layouts/inlined_string (2.7ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/console.js.erb within layouts/javascript (115.9ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/main.js.erb within layouts/javascript (0.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/error_page.js.erb within layouts/javascript (2.9ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/index.html.erb (240.5ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:23:58 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (13.9ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 97ms (Views: 96.5ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2016-12-23 14:23:58 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2016-12-23 14:23:59 +0300


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:24:20 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.9ms)
  Rendered sessions/login.html.erb within layouts/sessions (25.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.2ms)
Completed 200 OK in 137ms (Views: 136.3ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:24:30 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (1.7ms)
  Rendered sessions/login.html.erb within layouts/sessions (39.8ms)
  Rendered shared/_colorlist.html.erb (1.0ms)
  Rendered shared/_loading.html.erb (4.2ms)
Completed 200 OK in 260ms (Views: 254.0ms | ActiveRecord: 0.0ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:31:15 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"SWe5TnezqX+hcIsYVy7yr/f6d1n95rljALLgDcWcicNYtYHs0SBuMA5KHzzuciYo4NC+MDmE6MLDFOFh8ksKNQ==", "username"=>"sensor", "login_password"=>"[FILTERED]", "ad_auth_check"=>"0", "commit"=>"Login"}
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
   (0.9ms)  BEGIN
  SQL (7.4ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 96], ["last_login", "2016-12-23 14:31:16.000000"], ["session_id", "a2d50f246ede1b923656e8ca4e7928a3dcfc943b"], ["updated_at", "2016-12-23 11:31:16.200513"], ["id", 1]]
   (6.0ms)  COMMIT
Redirected to http://localhost:3007/common/index
Completed 302 Found in 88ms (ActiveRecord: 27.0ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 14:31:16 +0300
Processing by CommonController#index as HTML
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (7.7ms)
   (0.3ms)  BEGIN
  SQL (0.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 11:31:16.433523"], ["updated_at", "2016-12-23 11:31:16.433523"]]
   (7.1ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.2ms)
  User Load (57.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.9ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (1.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (1.0ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (140.8ms)
  Rendered shared/_loading.html.erb (2.6ms)
Completed 200 OK in 511ms (Views: 350.4ms | ActiveRecord: 154.5ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 14:31:17 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (3.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 11:31:17.411378"], ["updated_at", "2016-12-23 11:31:17.411378"]]
   (6.2ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (9.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 67ms (Views: 0.8ms | ActiveRecord: 19.9ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:31:17 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (47.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (1167.5ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (205.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (228.9ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (215.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (191.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (255.0ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (246.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (224.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (173.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 3330ms (Views: 1.1ms | ActiveRecord: 3120.4ms)


Started POST "/sessions/logout" for 127.0.0.1 at 2016-12-23 14:31:21 +0300
Processing by SessionsController#logout as */*
Redirected to http://localhost:3007/sessions/login
Completed 200 OK in 2ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:31:21 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (2.7ms)
  Rendered sessions/login.html.erb within layouts/sessions (41.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.2ms)
Completed 200 OK in 196ms (Views: 195.4ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:31:21 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (32.4ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (11.4ms)
Completed 200 OK in 97ms (Views: 95.9ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2016-12-23 14:31:22 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:31:26 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"/TevlcnlXyX2fJf2Ml8cJCI7vuZEBQHD4K23KEghU83s5Zc3b3aYallGA9KLA8ijNRF3j4BnUGIjC7ZEf/bQOw==", "username"=>"sensor", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
  LdapParameter Load (2.6ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
   (0.2ms)  BEGIN
  SQL (0.4ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 97], ["last_login", "2016-12-23 14:31:26.000000"], ["session_id", "1e5e889465a7f9e394e85fdd8fe05e65bba938fe"], ["updated_at", "2016-12-23 11:31:26.288232"], ["id", 1]]
   (6.6ms)  COMMIT
Redirected to http://localhost:3007/common/index
Completed 302 Found in 24ms (ActiveRecord: 10.2ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 14:31:26 +0300
Processing by CommonController#index as HTML
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (12.3ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 11:31:26.376342"], ["updated_at", "2016-12-23 11:31:26.376342"]]
   (5.7ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (44.0ms)
  Rendered shared/_loading.html.erb (1.2ms)
Completed 200 OK in 144ms (Views: 127.9ms | ActiveRecord: 11.5ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 14:31:26 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.6ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 11:31:26.971896"], ["updated_at", "2016-12-23 11:31:26.971896"]]
   (9.6ms)  COMMIT
  User Load (39.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (2.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.7ms)  BEGIN
   (0.4ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 69ms (Views: 0.7ms | ActiveRecord: 54.1ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:31:27 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (2.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (103.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (590.9ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (500.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (230.9ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (203.6ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (186.2ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (163.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (175.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (182.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (262.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2646ms (Views: 0.6ms | ActiveRecord: 2601.6ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:32:27 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (208.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (188.7ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (179.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (167.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (172.2ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (170.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (161.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (187.7ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (172.8ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1782ms (Views: 0.5ms | ActiveRecord: 1666.2ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:33:28 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (243.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (224.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (200.5ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (187.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (176.8ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (216.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (212.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (218.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (179.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2033ms (Views: 0.6ms | ActiveRecord: 1913.1ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:34:29 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.8ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (212.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (192.4ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (197.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (217.9ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (229.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (205.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (190.6ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (194.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (177.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1841ms (Views: 0.9ms | ActiveRecord: 1818.3ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:35:30 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (189.9ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (194.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (171.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (175.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (200.7ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (181.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (185.1ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (174.7ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (187.9ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1832ms (Views: 0.5ms | ActiveRecord: 1714.8ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:36:43 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (176.5ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (186.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (174.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (186.6ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (174.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (184.0ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (181.6ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (183.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (177.9ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1732ms (Views: 0.6ms | ActiveRecord: 1636.6ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:37:44 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (174.9ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (179.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (168.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (168.3ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (166.8ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (189.5ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (177.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (171.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (167.8ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1586ms (Views: 0.5ms | ActiveRecord: 1564.9ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 14:38:45 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (220.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (202.4ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (183.5ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (228.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (240.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (244.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (220.6ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (303.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (174.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2261ms (Views: 1.1ms | ActiveRecord: 2036.5ms)


Started POST "/sessions/logout" for 127.0.0.1 at 2016-12-23 14:39:03 +0300
Processing by SessionsController#logout as */*
Redirected to http://localhost:3007/sessions/login
Completed 200 OK in 5ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:39:03 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (23.3ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.5ms)
Completed 200 OK in 95ms (Views: 91.0ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 14:39:03 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.8ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.3ms)
Completed 200 OK in 71ms (Views: 69.3ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2016-12-23 14:39:03 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:39:13 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"9fEOjdtWr/a4BXX6+eWfam3EpvN4yDd2a6z0TDN3YPnkIzYvfcVouRc/4d5AuUvteu5vmryqZteoCvUgBKDjDw==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (5.7ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (9.0ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.1ms)
  Rendered shared/_colorlist.html.erb (0.2ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 106ms (Views: 48.2ms | ActiveRecord: 17.5ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:47:54 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"MLyIJaHonf4prFpMOTj1d6ZcCHh4NCa9G6BAYMUqiPIhbrCHB3tasYaWzmiAZCHwsXbBEbxWdxzYBkEM8v0LBA==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (21.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.6ms)
Completed 200 OK in 129ms (Views: 92.2ms | ActiveRecord: 3.3ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:48:58 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"JrRA0zYeSel9giE4ClQo5M0xF8EDPM4Nyrt3yCR8n5w3ZnhxkI2OptK4tRyzCPxj2hveqMden6wJHXakE6scag==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.3ms)
  Rendered sessions/login.html.erb within layouts/sessions (17.4ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.7ms)
Completed 200 OK in 115ms (Views: 83.4ms | ActiveRecord: 2.9ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 14:50:12 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"PvjbQXvGzuP4VVMG3HOOQvt4tCkWcEDvpsyVS0kT2iQvKuPj3VUJrFdvxyJlL1rF7FJ9QNISEU5lapQnfsRZ0g==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (15.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 122ms (Views: 86.2ms | ActiveRecord: 3.2ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:03:53 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"XsrszhMc40OiaDorOV65x8UJkOYwEoCuHalrqFEDBGZPGNRstY8kDA1Srg+AAm1A0iNZj/Rw0Q/eD2rEZtSHkA==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (25.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.5ms)
Completed 200 OK in 116ms (Views: 82.6ms | ActiveRecord: 3.1ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:05:04 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"48pje7KtT6ILLuVjnB3N4kIYbYS1jL/oc8SGrefcPwLyGFvZFD6I7aQUcUclQRllVTKk7XHu7kmwYofB0Au89A==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (15.6ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (6.6ms)
Completed 200 OK in 114ms (Views: 81.0ms | ActiveRecord: 3.6ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:05:26 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"Rkwbzx5aullIR6OEI1eouSb/8y8MWfj9WzZZaHt8CFdXniNtuMl9Fud9N6CaC3w+MdU6Rsg7qVyYkFgETKuLoQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (30.8ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 122ms (Views: 66.9ms | ActiveRecord: 11.6ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:05:53 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"QjQt23NSWbQl0g1Ew7fi/qpOd/1WXucIDO4npY0WuelT5hV51cGe+4romWB66zZ5vWS+lJI8tqnPSCbJusE6Hw==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.6ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (14.0ms)
  Rendered shared/_colorlist.html.erb (0.3ms)
  Rendered shared/_loading.html.erb (1.6ms)
Completed 200 OK in 100ms (Views: 62.0ms | ActiveRecord: 5.4ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:06:37 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"Zxw3cIpRacaTolZzTQHVFaEWiw9dUizoLf6Er1TQfkN2zg/SLMKuiTyYwlf0XQGStjxCZpkwfUnuWIXDYwf9tQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (10.3ms)
  Rendered shared/_colorlist.html.erb (0.3ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 69ms (Views: 38.4ms | ActiveRecord: 2.7ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:07:12 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"l3SUAQDwyWUX61AjHZY/pg6JcMJ/PwRV7ySnZuhtKruGpqyjpmMOKrjRxAekyushGaO5q7tdVfQsgqYK37qpTQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (11.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.7ms)
Completed 200 OK in 114ms (Views: 71.3ms | ActiveRecord: 3.6ms)


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:08:02 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"Jjn7vDAVdNgy4yOBNKSFsCY+wlyXFl7z8nCu3WVTssA368Meloazl53Zt6WN+FE3MRQLNVN0D1Ix1q+xUoQxNg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (0.4ms)  SELECT "ldap_user_groups".* FROM "ldap_user_groups"  ORDER BY order_id ASC
   (0.2ms)  BEGIN
  SQL (51.4ms)  INSERT INTO "users" ("username", "password", "salt", "user_group_id", "from_date", "to_date", "ad_user", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"  [["username", "aignatov"], ["password", "ad_auth"], ["salt", "ad_auth"], ["user_group_id", 1], ["from_date", "2016-12-23"], ["to_date", "2016-12-23"], ["ad_user", 1], ["created_at", "2016-12-23 12:08:02.915590"], ["updated_at", "2016-12-23 12:08:02.915590"]]
   (6.0ms)  COMMIT
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 124ms (Views: 1.0ms | ActiveRecord: 62.6ms)


Started GET "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:09:22 +0300

ActionController::RoutingError (No route matches [GET] "/sessions/login_attempt"):
  actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  web-console (2.3.0) lib/web_console/middleware.rb:28:in `block in call'
  web-console (2.3.0) lib/web_console/middleware.rb:18:in `catch'
  web-console (2.3.0) lib/web_console/middleware.rb:18:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
  rack (1.6.4) lib/rack/runtime.rb:18:in `call'
  activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  rack (1.6.4) lib/rack/lock.rb:17:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'
  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
  railties (4.2.4) lib/rails/engine.rb:518:in `call'
  railties (4.2.4) lib/rails/application.rb:165:in `call'
  rack (1.6.4) lib/rack/content_length.rb:15:in `call'
  thin (1.7.0) lib/thin/connection.rb:86:in `block in pre_process'
  thin (1.7.0) lib/thin/connection.rb:84:in `catch'
  thin (1.7.0) lib/thin/connection.rb:84:in `pre_process'
  thin (1.7.0) lib/thin/connection.rb:53:in `process'
  thin (1.7.0) lib/thin/connection.rb:39:in `receive_data'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run_machine'
  eventmachine (1.2.0.1) lib/eventmachine.rb:194:in `run'
  thin (1.7.0) lib/thin/backends/base.rb:73:in `start'
  thin (1.7.0) lib/thin/server.rb:162:in `start'
  rack (1.6.4) lib/rack/handler/thin.rb:19:in `run'
  rack (1.6.4) lib/rack/server.rb:286:in `start'
  railties (4.2.4) lib/rails/commands/server.rb:80:in `start'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:80:in `block in server'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:75:in `tap'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:75:in `server'
  railties (4.2.4) lib/rails/commands/commands_tasks.rb:39:in `run_command!'
  railties (4.2.4) lib/rails/commands.rb:17:in `<top (required)>'
  bin/rails:4:in `require'
  bin/rails:4:in `<main>'


  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (10.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.2ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (382.1ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_markup.html.erb (0.7ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (3.0ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.7ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/console.js.erb within layouts/javascript (104.8ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/main.js.erb within layouts/javascript (0.8ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.6ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/web-console-2.3.0/lib/web_console/templates/index.html.erb (245.2ms)


Started GET "/" for 127.0.0.1 at 2016-12-23 15:09:26 +0300
Processing by CommonController#index as HTML
Redirected to http://localhost:3007/sessions/login?target=%2F
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 6ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login?target=%2F" for 127.0.0.1 at 2016-12-23 15:09:26 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.9ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (14.3ms)
Completed 200 OK in 68ms (Views: 67.0ms | ActiveRecord: 0.0ms)


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2016-12-23 15:09:39 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"63heH1jB54yVkmFdKOkeKJPpN/ZfZCxlFmyGlYQTo1b6qma9/lIgwzqo9XmRtcqvhMP+n5sGfcTVyof5s8QgoA==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (0.4ms)  SELECT "ldap_user_groups".* FROM "ldap_user_groups"  ORDER BY order_id ASC
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "users" ("username", "password", "salt", "user_group_id", "from_date", "to_date", "ad_user", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"  [["username", "aignatov"], ["password", "ad_auth"], ["salt", "ad_auth"], ["user_group_id", 1], ["from_date", "2016-12-23"], ["to_date", "2016-12-23"], ["ad_user", 1], ["created_at", "2016-12-23 12:09:39.831073"], ["updated_at", "2016-12-23 12:09:39.831073"]]
   (6.2ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "global_filters" WHERE "global_filters"."user_id" = $1  [["user_id", 20]]
   (0.5ms)  BEGIN
  SQL (46.5ms)  INSERT INTO "global_filters" ("user_id", "operation_source_id", "operation_server_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["user_id", 20], ["operation_source_id", 0], ["operation_server_id", 0], ["created_at", "2016-12-23 12:09:39.855801"], ["updated_at", "2016-12-23 12:09:39.855801"]]
   (6.0ms)  COMMIT
   (0.2ms)  BEGIN
  SQL (0.7ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 1], ["last_login", "2016-12-23 15:09:39.000000"], ["session_id", "0f81a419ce72abec6bf25f946ecbd7ddf2a6d9b8"], ["updated_at", "2016-12-23 12:09:39.918562"], ["id", 20]]
   (6.2ms)  COMMIT
Redirected to http://localhost:3007/
Completed 302 Found in 155ms (ActiveRecord: 73.7ms)


Started GET "/" for 127.0.0.1 at 2016-12-23 15:09:39 +0300
Processing by CommonController#index as HTML
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (11.7ms)
   (0.3ms)  BEGIN
  SQL (6.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:09:40.010189"], ["updated_at", "2016-12-23 12:09:40.010189"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (6.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (1.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (66.9ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 238ms (Views: 173.5ms | ActiveRecord: 60.0ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 15:09:40 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:09:40.739721"], ["updated_at", "2016-12-23 12:09:40.739721"]]
   (6.0ms)  COMMIT
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (1.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.5ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 23ms (Views: 0.7ms | ActiveRecord: 9.9ms)


Started GET "/common/get_index_graph?start_time=23-12-2016+0%3A0%3A0&end_time=23-12-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 15:09:41 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"23-12-2016 0:0:0", "end_time"=>"23-12-2016 0:0:0"}
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (409.5ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (182.7ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (161.5ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (241.3ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (259.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (235.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (215.5ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp)
  ActiveDatum Load (179.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (183.5ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2168ms (Views: 0.4ms | ActiveRecord: 2075.2ms)


Started GET "/settings/users" for 127.0.0.1 at 2016-12-23 15:09:46 +0300
Processing by UsersController#index as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE (ad_user is null)
  UserGroup Load (17.9ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered users/index.html.erb within layouts/application (37.3ms)
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/users"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"users\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:09:46.187508"], ["updated_at", "2016-12-23 12:09:46.187508"]]
   (5.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (1.0ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (3.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (3.8ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (40.4ms)
  Rendered shared/_loading.html.erb (2.2ms)
Completed 200 OK in 158ms (Views: 111.0ms | ActiveRecord: 40.6ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 15:09:46 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:09:46.846694"], ["updated_at", "2016-12-23 12:09:46.846694"]]
   (6.8ms)  COMMIT
  User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 18ms (Views: 1.0ms | ActiveRecord: 9.5ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 15:09:56 +0300
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (6.5ms)
   (4.8ms)  BEGIN
  SQL (2.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:09:56.775568"], ["updated_at", "2016-12-23 12:09:56.775568"]]
   (4.1ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.6ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (26.7ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 115ms (Views: 95.1ms | ActiveRecord: 17.2ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 15:09:57 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:09:57.347643"], ["updated_at", "2016-12-23 12:09:57.347643"]]
   (7.2ms)  COMMIT
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 19ms (Views: 0.7ms | ActiveRecord: 9.2ms)


Started GET "/common/get_index_graph?start_time=23-12-2016+0%3A0%3A0&end_time=23-12-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 15:09:57 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"23-12-2016 0:0:0", "end_time"=>"23-12-2016 0:0:0"}
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (386.6ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (214.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (259.9ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (205.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (175.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (223.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (191.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp)
  ActiveDatum Load (170.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (146.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1992ms (Views: 0.3ms | ActiveRecord: 1975.3ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 15:10:12 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.3ms)  BEGIN
  SQL (10.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:10:12.571359"], ["updated_at", "2016-12-23 12:10:12.571359"]]
   (33.9ms)  COMMIT
  User Load (3.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
  SQL (13.1ms)  UPDATE "users" SET "from_date" = $1, "to_date" = $2, "updated_at" = $3 WHERE "users"."id" = $4  [["from_date", "2016-10-21"], ["to_date", "2016-10-21"], ["updated_at", "2016-12-23 12:10:12.640166"], ["id", 20]]
   (2.1ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 113ms (Views: 0.7ms | ActiveRecord: 64.4ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 15:10:13 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (282.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (254.6ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (248.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (189.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (186.2ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (198.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (211.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (177.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (212.0ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1989ms (Views: 0.4ms | ActiveRecord: 1959.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 15:10:57 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (228.7ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (178.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (202.9ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (267.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (226.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (193.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (193.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (286.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (182.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1988ms (Views: 0.4ms | ActiveRecord: 1961.1ms)


Started POST "/sessions/logout" for 127.0.0.1 at 2016-12-23 15:11:20 +0300
Processing by SessionsController#logout as */*
Redirected to http://localhost:3007/sessions/login
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 15:11:20 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (3.8ms)
  Rendered sessions/login.html.erb within layouts/sessions (21.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (5.5ms)
Completed 200 OK in 122ms (Views: 120.9ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2016-12-23 15:11:20 +0300
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (7.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 73ms (Views: 71.9ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2016-12-23 15:11:20 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2016-12-23 15:11:25 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"/i2XNHqWgzXjjjc0dXKWVOilpGQ0AJWEwfKaqxTP2ujv/6+W3AVEeky0oxDMLkLT/49tDfBixCUCVJvHIxhZHg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (2.2ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
   (0.2ms)  BEGIN
  SQL (4.3ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 2], ["last_login", "2016-12-23 15:11:25.000000"], ["session_id", "e58fe5e7cc9ac59be276cf1306dd7f3927b9eedc"], ["updated_at", "2016-12-23 12:11:25.318394"], ["id", 20]]
   (6.1ms)  COMMIT
Redirected to http://localhost:3007/common/index
Completed 302 Found in 34ms (ActiveRecord: 13.4ms)


Started GET "/common/index" for 127.0.0.1 at 2016-12-23 15:11:25 +0300
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (12.8ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:11:25.413493"], ["updated_at", "2016-12-23 12:11:25.413493"]]
   (6.1ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (6.0ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.9ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (47.7ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 150ms (Views: 129.5ms | ActiveRecord: 17.3ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2016-12-23 15:11:25 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (1.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:11:25.992135"], ["updated_at", "2016-12-23 12:11:25.992135"]]
   (5.9ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  BEGIN
   (0.4ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 21ms (Views: 0.8ms | ActiveRecord: 8.5ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 127.0.0.1 at 2016-12-23 15:11:26 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (3.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (341.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (247.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (250.7ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (255.2ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (648.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (607.5ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (205.6ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (202.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (233.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 3042ms (Views: 0.4ms | ActiveRecord: 2995.7ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 15:12:55 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
  ActiveRecord::SchemaMigration Load (24.7ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by CommonController#index as HTML
Redirected to http://10.1.13.116:3007/sessions/login?target=%2Fcommon%2Findex
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 13ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login?target=%2Fcommon%2Findex" for 10.1.13.116 at 2016-12-23 15:12:55 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/common/index"}
  Rendered shared/_check_box_v2.html.erb (1.9ms)
  Rendered sessions/login.html.erb within layouts/sessions (827.5ms)
  Rendered shared/_colorlist.html.erb (0.4ms)
  Rendered shared/_loading.html.erb (3.5ms)
Completed 200 OK in 984ms (Views: 982.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 15:12:56 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:56 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:56 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:56 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:12:57 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?target=%2Fcommon%2Findex" for 10.1.13.116 at 2016-12-23 15:13:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/common/index"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (12.3ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.2ms)
Completed 200 OK in 70ms (Views: 69.1ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:13:01 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:13:01 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt?target=%2Fcommon%2Findex" for 10.1.13.116 at 2016-12-23 15:13:10 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"lrVnu06TStk1hFNlj8SaQoz2+kF18ypN2NwJClFKxW083AndQOkYYhejSlzNwQMYP0IcDYw/G4sKS7A399G+dg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/common/index"}
  LdapParameter Load (8.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (20.0ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
   (0.2ms)  BEGIN
  SQL (0.7ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 3], ["last_login", "2016-12-23 15:13:11.000000"], ["session_id", "cf0bd98cb1f1b91571c4b39b221d986f620bc6c1"], ["updated_at", "2016-12-23 12:13:11.134167"], ["id", 20]]
   (12.1ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 211ms (ActiveRecord: 156.4ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 15:13:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (11.3ms)
   (0.2ms)  BEGIN
  SQL (7.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:13:11.253043"], ["updated_at", "2016-12-23 12:13:11.253043"]]
   (1.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (26.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (10.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (9.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (8.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (2.9ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (11.7ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (128.9ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 382ms (Views: 254.2ms | ActiveRecord: 117.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:13:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:13:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 15:13:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:13:11.844634"], ["updated_at", "2016-12-23 12:13:11.844634"]]
   (1.3ms)  COMMIT
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (2.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  BEGIN
   (0.4ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 31ms (Views: 4.3ms | ActiveRecord: 6.1ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:13:12 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (305.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (251.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (231.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (304.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (274.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (225.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (212.5ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (235.2ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (301.9ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2583ms (Views: 0.4ms | ActiveRecord: 2446.4ms)


Started GET "/common/index" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
Redirected to http://10.1.13.116:3007/sessions/login?target=%2Fcommon%2Findex
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)


Started GET "/sessions/login?target=%2Fcommon%2Findex" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/common/index"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (10.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.2ms)
Completed 200 OK in 58ms (Views: 57.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.139 at 2016-12-23 15:13:34 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt?target=%2Fcommon%2Findex" for 10.1.13.139 at 2016-12-23 15:13:43 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"NpujF34mJiSrpg+JDPIVMe1ZUO5z0yJCkSXGrLszxTuKfePfcyM+fEB6bXP579gNYn+Xgsc/VZv7wjmR1I1rZg==", "username"=>"nsmagin", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/common/index"}
  LdapParameter Load (2.0ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (3.2ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "nsmagin"]]
  LdapUserGroup Load (18.5ms)  SELECT "ldap_user_groups".* FROM "ldap_user_groups"  ORDER BY order_id ASC
   (0.4ms)  BEGIN
  SQL (2.5ms)  INSERT INTO "users" ("username", "password", "salt", "user_group_id", "from_date", "to_date", "ad_user", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"  [["username", "nsmagin"], ["password", "ad_auth"], ["salt", "ad_auth"], ["user_group_id", 1], ["from_date", "2016-12-23"], ["to_date", "2016-12-23"], ["ad_user", 1], ["created_at", "2016-12-23 12:13:43.636017"], ["updated_at", "2016-12-23 12:13:43.636017"]]
   (1.3ms)  COMMIT
   (0.3ms)  SELECT COUNT(*) FROM "global_filters" WHERE "global_filters"."user_id" = $1  [["user_id", 21]]
   (0.2ms)  BEGIN
  SQL (4.5ms)  INSERT INTO "global_filters" ("user_id", "operation_source_id", "operation_server_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["user_id", 21], ["operation_source_id", 0], ["operation_server_id", 0], ["created_at", "2016-12-23 12:13:43.646323"], ["updated_at", "2016-12-23 12:13:43.646323"]]
   (1.4ms)  COMMIT
   (0.4ms)  BEGIN
  SQL (0.4ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 1], ["last_login", "2016-12-23 15:13:43.000000"], ["session_id", "3b933a230877e94f777f805230cb724ce996236f"], ["updated_at", "2016-12-23 12:13:43.658257"], ["id", 21]]
   (1.3ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 81ms (ActiveRecord: 37.6ms)


Started GET "/common/index" for 10.1.13.139 at 2016-12-23 15:13:43 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  Rendered common/index.html.erb within layouts/application (6.9ms)
   (0.4ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 21], ["action", "/common/index"], ["ip", "10.1.13.139"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:13:43.711914"], ["updated_at", "2016-12-23 12:13:43.711914"]]
   (1.8ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  Menu Load (1.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 21]]
  OperationServer Load (0.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  Rendered shared/_menu.html.erb (25.3ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 95ms (Views: 84.6ms | ActiveRecord: 8.2ms)


Started POST "/sessions/update_user_dates" for 10.1.13.139 at 2016-12-23 15:13:44 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (RTZ 2 (зима))", "to_date"=>"Fri Dec 23 2016 00:00:00 GMT+0300 (RTZ 2 (зима))", "user_id"=>"21"}
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 21], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.139"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (RTZ 2 (зима))\", \"to_date\"=>\"Fri Dec 23 2016 00:00:00 GMT+0300 (RTZ 2 (зима))\", \"user_id\"=>\"21\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:13:44.242124"], ["updated_at", "2016-12-23 12:13:44.242124"]]
   (1.2ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
   (0.4ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 3.1ms)


Started GET "/common/get_index_graph?start_time=23-12-2016+0%3A0%3A0&end_time=23-12-2016+0%3A0%3A0" for 10.1.13.139 at 2016-12-23 15:13:44 +0300
Cannot render console from 10.1.13.139! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"23-12-2016 0:0:0", "end_time"=>"23-12-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 21]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 21]]
  ActiveDatum Load (165.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (168.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (183.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (152.5ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (175.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (168.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (154.1ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp)
  ActiveDatum Load (162.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (175.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '23-12-2016 0:0:0'::timestamp and end_time::date <= '23-12-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1517ms (Views: 0.4ms | ActiveRecord: 1505.6ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:14:12 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (239.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (195.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (201.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (193.6ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (173.5ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (203.5ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (186.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (193.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (175.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1791ms (Views: 0.3ms | ActiveRecord: 1761.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:15:18 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (222.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (210.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (233.9ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (305.2ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (206.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (210.7ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (205.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (196.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (190.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2009ms (Views: 0.7ms | ActiveRecord: 1981.6ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:16:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (1.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (316.9ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (192.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (196.3ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (190.9ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (213.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (198.1ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (195.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (249.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (203.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1986ms (Views: 0.3ms | ActiveRecord: 1958.2ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:17:21 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (216.6ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (208.0ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (199.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (218.3ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (224.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (191.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (220.8ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (199.6ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (192.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1894ms (Views: 0.5ms | ActiveRecord: 1871.3ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:18:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (2.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (221.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (203.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (221.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (217.7ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (216.8ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (200.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (207.8ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (212.4ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (193.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2027ms (Views: 1.7ms | ActiveRecord: 1905.1ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:19:23 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (176.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (196.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (210.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (191.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (197.7ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (192.7ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (182.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (201.6ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (181.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1844ms (Views: 0.9ms | ActiveRecord: 1738.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:20:24 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (208.6ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (194.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (212.3ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (204.3ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (195.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (203.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (192.5ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (213.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (197.0ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1846ms (Views: 0.8ms | ActiveRecord: 1821.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:21:25 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (243.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (202.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (228.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (224.8ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (205.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (197.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (202.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (209.7ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (203.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1960ms (Views: 0.4ms | ActiveRecord: 1917.4ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:22:26 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (211.7ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (203.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (201.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (196.7ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (206.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (197.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (187.7ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (202.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (203.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1942ms (Views: 0.7ms | ActiveRecord: 1819.6ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:23:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (6.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (2.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (313.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (184.6ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (251.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (307.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (190.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (197.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (198.5ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (193.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (284.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2174ms (Views: 1.3ms | ActiveRecord: 2130.1ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:24:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (250.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (203.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (262.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (209.3ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (285.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (304.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (296.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (634.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (308.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2978ms (Views: 1.0ms | ActiveRecord: 2817.3ms)


Started POST "/sessions/logout" for 10.1.13.116 at 2016-12-23 15:24:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#logout as */*
Redirected to http://10.1.13.116:3007/sessions/login
Completed 200 OK in 14ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:24:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (18.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.4ms)
Completed 200 OK in 141ms (Views: 139.4ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:24:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (17.4ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 150ms (Views: 147.1ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:24:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 15:24:36 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"xQi8jjizjG61he+FFncHwyvINs2iB7ydgep63MFZ9rNvYdLoNsne1Zei9rxUcp6ZmHzQgVvLjVtTfcPhZ8KNqA==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (2.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (8.8ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.4ms)  BEGIN
  SQL (1.3ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 4], ["last_login", "2016-12-23 15:24:37.000000"], ["session_id", "c523570dc1a9e9b6830eeea069e5efa90280e145"], ["updated_at", "2016-12-23 12:24:37.017461"], ["id", 20]]
   (2.3ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 74ms (ActiveRecord: 19.7ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 15:24:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (8.0ms)
   (0.2ms)  BEGIN
  SQL (6.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:24:37.089432"], ["updated_at", "2016-12-23 12:24:37.089432"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (2.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (6.1ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.8ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (64.2ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 205ms (Views: 144.4ms | ActiveRecord: 57.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:24:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:24:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 15:24:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (17.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:24:37.588976"], ["updated_at", "2016-12-23 12:24:37.588976"]]
   (6.0ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 43ms (Views: 0.7ms | ActiveRecord: 24.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:24:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (240.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (202.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (175.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (201.5ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (197.8ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (291.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (291.8ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (191.2ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (218.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2066ms (Views: 0.4ms | ActiveRecord: 2011.6ms)


Started POST "/sessions/logout" for 10.1.13.116 at 2016-12-23 15:25:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#logout as */*
Redirected to http://10.1.13.116:3007/sessions/login
Completed 200 OK in 2ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:25:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (10.4ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 41ms (Views: 39.6ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:25:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (9.7ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (2.0ms)
Completed 200 OK in 53ms (Views: 51.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 15:25:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:25:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 15:25:36 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"TuxJhB/B8rKW4dvkYke1jyn43W+3/ANYyt81oYARNWLkhSfiEbugCbTGwt0gQizVmkw7I04wMp4YSIycJopOeQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (2.9ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (5.9ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 100ms (Views: 55.6ms | ActiveRecord: 4.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:25:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:25:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 15:25:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"GERXtBb+hT2LCJ4MWfT80dOr8ZSe3Urjusch/diT83myLTnSGITXhqkvhzUb8WWLYB8X2GcReyVoUJjAfgiIYg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.8ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (1.7ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.3ms)  BEGIN
  SQL (0.7ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 5], ["last_login", "2016-12-23 15:25:40.000000"], ["session_id", "e988cb31f60791f0c5f8bc0d11a0c8bb471b5575"], ["updated_at", "2016-12-23 12:25:40.073151"], ["id", 20]]
   (2.1ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 33ms (ActiveRecord: 6.1ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 15:25:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (5.6ms)
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:25:40.140604"], ["updated_at", "2016-12-23 12:25:40.140604"]]
   (5.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.1ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (1.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (37.2ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 120ms (Views: 95.7ms | ActiveRecord: 12.7ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:25:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:25:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 15:25:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (3.4ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:25:40.512936"], ["updated_at", "2016-12-23 12:25:40.512936"]]
   (1.5ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 18ms (Views: 1.1ms | ActiveRecord: 6.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:25:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (2.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (1.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (284.8ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (179.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (203.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (196.5ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (202.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (234.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (230.7ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (250.6ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (171.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1983ms (Views: 0.3ms | ActiveRecord: 1956.7ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:25:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (24.1ms)  SELECT COUNT(*) FROM "user_groups"
   (0.6ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (6.1ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.6ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (16.2ms)
   (0.4ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:25:59.794042"], ["updated_at", "2016-12-23 12:25:59.794042"]]
   (15.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.8ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (29.4ms)
  Rendered shared/_loading.html.erb (4.5ms)
Completed 200 OK in 186ms (Views: 100.8ms | ActiveRecord: 70.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:25:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:26:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/settings/user_groups" for 10.1.13.116 at 2016-12-23 15:26:05 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UserGroupsController#index as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  UserGroup Load (0.6ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (10.6ms)
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/user_groups"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:26:05.515864"], ["updated_at", "2016-12-23 12:26:05.515864"]]
   (5.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (45.0ms)
  Rendered shared/_loading.html.erb (4.1ms)
Completed 200 OK in 143ms (Views: 125.6ms | ActiveRecord: 13.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:26:05 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:26:05 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 15:26:05 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (1.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:26:05.935706"], ["updated_at", "2016-12-23 12:26:05.935706"]]
   (6.5ms)  COMMIT
  User Load (5.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  BEGIN
   (0.5ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 47ms (Views: 4.2ms | ActiveRecord: 14.9ms)


Started DELETE "/settings/user_groups/3" for 10.1.13.116 at 2016-12-23 15:26:08 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UserGroupsController#destroy as HTML
  Parameters: {"authenticity_token"=>"xBX/7Ej2D95VlhkzmL3ch5glvPg8liGBqVC1EVirmLRufJGKRoxdZXexAArauEXdK5FatMVaEEd7xwws/jDjrw==", "id"=>"3"}
  Menu Load (1.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (3.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  UserGroup Load (24.0ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 3]]
   (0.2ms)  BEGIN
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."user_group_id" = $1  [["user_group_id", 3]]
  LdapUserGroup Load (0.2ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1 LIMIT 1  [["user_group_id", 3]]
  SQL (0.2ms)  DELETE FROM "ldap_user_groups" WHERE "ldap_user_groups"."id" = $1  [["id", 3]]
  SQL (0.2ms)  DELETE FROM "user_groups" WHERE "user_groups"."id" = $1  [["id", 3]]
   (6.2ms)  COMMIT
Redirected to http://10.1.13.116:3007/settings/user_groups
Completed 302 Found in 77ms (ActiveRecord: 36.8ms)


Started GET "/settings/user_groups" for 10.1.13.116 at 2016-12-23 15:26:08 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UserGroupsController#index as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  UserGroup Load (0.3ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (1.7ms)
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/user_groups"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:26:08.522112"], ["updated_at", "2016-12-23 12:26:08.522112"]]
   (7.2ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (1.0ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (79.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (1.9ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (36.0ms)
  Rendered shared/_loading.html.erb (1.2ms)
Completed 200 OK in 341ms (Views: 240.4ms | ActiveRecord: 94.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:26:08 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:26:09 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 15:26:09 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.6ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:26:09.059692"], ["updated_at", "2016-12-23 12:26:09.059692"]]
   (2.3ms)  COMMIT
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 96ms (Views: 0.9ms | ActiveRecord: 5.3ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:26:10 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.6ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.6ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (9.2ms)
   (0.3ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:26:10.992557"], ["updated_at", "2016-12-23 12:26:10.992557"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.1ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (24.1ms)
  Rendered shared/_loading.html.erb (4.7ms)
Completed 200 OK in 136ms (Views: 116.7ms | ActiveRecord: 11.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:26:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:26:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:38:39 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
Completed 500 Internal Server Error in 39ms (ActiveRecord: 5.6ms)

SyntaxError (/Users/Anton/git/sensor/app/models/user.rb:91: syntax error, unexpected end-of-input, expecting keyword_end):
  app/models/user.rb:91: syntax error, unexpected end-of-input, expecting keyword_end
  app/controllers/application_controller.rb:55:in `controller_access'
  app/controllers/application_controller.rb:32:in `check_access'


  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.8ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (131.1ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:38:52 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.6ms)  SELECT COUNT(*) FROM "user_groups"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (25.1ms)
   (0.2ms)  BEGIN
  SQL (15.1ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:38:52.907369"], ["updated_at", "2016-12-23 12:38:52.907369"]]
   (1.2ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (1.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (99.3ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 361ms (Views: 244.2ms | ActiveRecord: 73.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:38:53 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:38:53 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/logout" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#logout as */*
Redirected to http://10.1.13.116:3007/sessions/login
Completed 200 OK in 3ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (9.8ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.3ms)
Completed 200 OK in 41ms (Views: 40.5ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (18.7ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (0.9ms)
Completed 200 OK in 83ms (Views: 82.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:39:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 15:39:03 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"4xtZ+h+aojoqtttCkw07Ejxi26zLCOtkwtgfCbUyYvZJcjecEeDwgQiRwnvRCKJIj9Y94DLE2qIQT6Y0E6kZ7Q==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (0.3ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.2ms)  BEGIN
  SQL (0.5ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 6], ["last_login", "2016-12-23 15:39:03.000000"], ["session_id", "e8d2ae35b8b79b52b6cc9bd74f8c26d67ad6fae5"], ["updated_at", "2016-12-23 12:39:03.684716"], ["id", 20]]
   (1.5ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 46ms (ActiveRecord: 4.0ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 15:39:03 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (7.8ms)
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:39:03.757084"], ["updated_at", "2016-12-23 12:39:03.757084"]]
   (1.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (1.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (3.1ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (1.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.6ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (31.8ms)
  Rendered shared/_loading.html.erb (3.0ms)
Completed 200 OK in 115ms (Views: 100.4ms | ActiveRecord: 12.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:39:03 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:39:04 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 15:39:04 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:39:04.100484"], ["updated_at", "2016-12-23 12:39:04.100484"]]
   (6.4ms)  COMMIT
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (4.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.4ms)  COMMIT
  Rendered text template (0.1ms)
Completed 200 OK in 29ms (Views: 1.9ms | ActiveRecord: 12.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:39:04 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (247.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (225.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (199.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (199.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (212.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (326.0ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (212.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (197.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (225.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2148ms (Views: 1.7ms | ActiveRecord: 2050.5ms)


Started POST "/sessions/logout" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#logout as */*
Redirected to http://10.1.13.116:3007/sessions/login
Completed 200 OK in 2ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.3ms)
  Rendered sessions/login.html.erb within layouts/sessions (11.8ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.5ms)
Completed 200 OK in 73ms (Views: 72.4ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.3ms)
  Rendered sessions/login.html.erb within layouts/sessions (8.5ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.4ms)
Completed 200 OK in 34ms (Views: 33.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 15:39:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 15:40:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 15:40:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 15:40:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 15:40:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 15:40:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:40:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:40:00 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 15:42:36 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (49.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.6ms)
Completed 200 OK in 121ms (Views: 120.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:42:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:42:37 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=en" for 10.1.13.116 at 2016-12-23 15:42:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"en"}
  Rendered shared/_check_box_v2.html.erb (1.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (9.8ms)
  Rendered shared/_colorlist.html.erb (0.5ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 47ms (Views: 46.7ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:42:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:42:44 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=ru" for 10.1.13.116 at 2016-12-23 15:42:47 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"ru"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (30.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 66ms (Views: 63.0ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:42:47 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:42:47 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=en" for 10.1.13.116 at 2016-12-23 15:42:50 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"en"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.3ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.9ms)
Completed 200 OK in 40ms (Views: 39.8ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:42:50 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:42:50 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=ru" for 10.1.13.116 at 2016-12-23 15:42:54 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"ru"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (5.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 35ms (Views: 34.0ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:42:54 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:42:54 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=ru" for 10.1.13.116 at 2016-12-23 15:42:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"ru"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (16.4ms)
  Rendered shared/_colorlist.html.erb (0.2ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 58ms (Views: 56.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:42:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:42:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=en" for 10.1.13.116 at 2016-12-23 15:43:02 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"en"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (7.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 55ms (Views: 53.9ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:43:02 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:43:02 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=ru" for 10.1.13.116 at 2016-12-23 15:43:08 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"ru"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.5ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.3ms)
Completed 200 OK in 57ms (Views: 56.0ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:43:08 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:43:09 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=en" for 10.1.13.116 at 2016-12-23 15:43:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"en"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.8ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (4.8ms)
Completed 200 OK in 47ms (Views: 46.1ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:43:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:43:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=en" for 10.1.13.116 at 2016-12-23 15:43:31 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"en"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (23.2ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (5.6ms)
Completed 200 OK in 113ms (Views: 112.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:43:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:43:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login?locale=en" for 10.1.13.116 at 2016-12-23 15:43:36 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Parameters: {"locale"=>"en"}
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.3ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.3ms)
Completed 200 OK in 50ms (Views: 49.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:43:36 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:43:36 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 15:44:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"bE4B631z79x9w+smacfmS0Off/4TdtKbhnyY84ChEtbGJ2+Ncwm9Z1/k8h8rwn8R8CuZsuq6411U6yHOJjppzQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (8.6ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (0.4ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.7ms)  BEGIN
  SQL (2.4ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 7], ["last_login", "2016-12-23 15:44:22.000000"], ["session_id", "4545c15df4ccd379a24e57d770128f01c8c82dab"], ["updated_at", "2016-12-23 12:44:22.912614"], ["id", 20]]
   (8.0ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 111ms (ActiveRecord: 32.3ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 15:44:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (7.1ms)
   (0.3ms)  BEGIN
  SQL (6.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 12:44:23.053909"], ["updated_at", "2016-12-23 12:44:23.053909"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.8ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (98.3ms)
  Rendered shared/_loading.html.erb (2.6ms)
Completed 200 OK in 297ms (Views: 242.9ms | ActiveRecord: 50.7ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:44:23 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:44:23 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 15:44:23 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 12:44:23.785519"], ["updated_at", "2016-12-23 12:44:23.785519"]]
   (5.6ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  BEGIN
   (1.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 29ms (Views: 1.5ms | ActiveRecord: 8.3ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 15:44:24 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (101.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (1.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (261.5ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (249.4ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (241.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (352.7ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (341.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (276.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (187.6ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (226.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (403.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2859ms (Views: 0.8ms | ActiveRecord: 2655.9ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:44:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (5.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (2.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_groups"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (4.0ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (2.0ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (18.5ms)
   (2.6ms)  BEGIN
  SQL (13.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:44:29.182663"], ["updated_at", "2016-12-23 12:44:29.182663"]]
   (8.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (27.4ms)
  Rendered shared/_loading.html.erb (3.2ms)
Completed 200 OK in 298ms (Views: 213.6ms | ActiveRecord: 62.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:44:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:44:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:53:24 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.6ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (2.3ms)  SELECT COUNT(*) FROM "user_groups"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (25.9ms)
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 93ms (Views: 0.6ms | ActiveRecord: 12.1ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:54:55 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.8ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_groups"
   (0.5ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (23.1ms)
Completed 500 Internal Server Error in 40ms (ActiveRecord: 2.4ms)

SyntaxError (/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:14: syntax error, unexpected '<'
				<td>'.freeze;@output_buffer.ap...
				 ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:15: unknown regexp options - tr
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:17: syntax error, unexpected '<'
...ut_buffer.safe_append='			<tr><td colspan="2" style="font-si...
...                       			     ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:17: syntax error, unexpected tIDENTIFIER, expecting ')'
...d='			<tr><td colspan="2" style="font-size:16px" align="cent...
...   			                         ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:17: syntax error, unexpected tIDENTIFIER, expecting ')'
...2" style="font-size:16px" align="center"><b>'.freeze;@output...
...                               ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:17: syntax error, unexpected '<'
...ont-size:16px" align="center"><b>'.freeze;@output_buffer.app...
...                               ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:17: syntax error, unexpected tSTRING_BEG, expecting ')'
...pend=( t('.user_group_settings') );@output_buffer.safe_appen...
...                               ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:17: unknown regexp options - td
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:17: syntax error, unexpected '<'
...put_buffer.safe_append=')</td></tr>
...                               ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:21: unknown regexp options - td
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:22: syntax error, unexpected '<'
				<td>'.freeze;@output_buffer.ap...
				 ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:23: unknown regexp options - tr
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:25: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
...ffer.safe_append='  		  	<tr id="update_user_confirm_button">
...                    		  	      ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:26: syntax error, unexpected '<'
   			 	<td colspan="2" align="center"...
   			 	 ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:26: syntax error, unexpected tIDENTIFIER, expecting ')'
   			 	<td colspan="2" align="center"><a class="href_edit...
   			 	                     ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:26: syntax error, unexpected '<'
...td colspan="2" align="center"><a class="href_edit_button" on...
...                               ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:26: syntax error, unexpected tIDENTIFIER, expecting ')'
...lass="href_edit_button" onclick="update_ad_settings()">'.fre...
...                               ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:26: unknown regexp options - td
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:27: syntax error, unexpected '<'
  		  	</tr>
  		  	 ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:29: unknown regexp options - td
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:30: syntax error, unexpected '<'
			</tr> 
			 ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:31: unknown regexp options - tabl
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:32: syntax error, unexpected '<'
	</div>
	 ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:33: unknown regexp options - dv
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:35: syntax error, unexpected '<'
<script>
 ^
/Users/Anton/git/sensor/app/views/settings/ad_connections.html.erb:36: `$(' is not allowed as a global variable name):
  app/views/settings/ad_connections.html.erb:14: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:15: unknown regexp options - tr
  app/views/settings/ad_connections.html.erb:17: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:17: syntax error, unexpected tIDENTIFIER, expecting ')'
  app/views/settings/ad_connections.html.erb:17: syntax error, unexpected tIDENTIFIER, expecting ')'
  app/views/settings/ad_connections.html.erb:17: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:17: syntax error, unexpected tSTRING_BEG, expecting ')'
  app/views/settings/ad_connections.html.erb:17: unknown regexp options - td
  app/views/settings/ad_connections.html.erb:17: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:21: unknown regexp options - td
  app/views/settings/ad_connections.html.erb:22: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:23: unknown regexp options - tr
  app/views/settings/ad_connections.html.erb:25: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
  app/views/settings/ad_connections.html.erb:26: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:26: syntax error, unexpected tIDENTIFIER, expecting ')'
  app/views/settings/ad_connections.html.erb:26: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:26: syntax error, unexpected tIDENTIFIER, expecting ')'
  app/views/settings/ad_connections.html.erb:26: unknown regexp options - td
  app/views/settings/ad_connections.html.erb:27: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:29: unknown regexp options - td
  app/views/settings/ad_connections.html.erb:30: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:31: unknown regexp options - tabl
  app/views/settings/ad_connections.html.erb:32: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:33: unknown regexp options - dv
  app/views/settings/ad_connections.html.erb:35: syntax error, unexpected '<'
  app/views/settings/ad_connections.html.erb:36: `$(' is not allowed as a global variable name


  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.5ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (10.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
  Rendered /Users/Anton/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (128.4ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:55:02 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (63.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (4.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_groups"
   (0.8ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (49.0ms)
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 145ms (Views: 1.4ms | ActiveRecord: 69.9ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:55:16 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (12.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (2.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (1.0ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_groups"
   (5.5ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (26.9ms)
  Rendered text template (0.0ms)
Completed 500 Internal Server Error in 68ms (Views: 0.5ms | ActiveRecord: 22.6ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:56:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.8ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_groups"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (1.1ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (88.7ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (3.6ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (199.1ms)
   (0.4ms)  BEGIN
  SQL (0.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:56:29.597239"], ["updated_at", "2016-12-23 12:56:29.597239"]]
   (5.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (2.9ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (1.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (94.5ms)
  Rendered shared/_loading.html.erb (4.1ms)
Completed 200 OK in 593ms (Views: 352.3ms | ActiveRecord: 183.1ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:56:30 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:56:30 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:58:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (1.5ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (95.1ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:58:41.340397"], ["updated_at", "2016-12-23 12:58:41.340397"]]
   (5.8ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.2ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (13.2ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (94.3ms)
  Rendered shared/_loading.html.erb (4.4ms)
Completed 200 OK in 419ms (Views: 304.0ms | ActiveRecord: 55.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:58:41 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:58:42 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/change_language" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#change_language as */*
  Parameters: {"lang"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/change_language"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"lang\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"change_language\"}"], ["created_at", "2016-12-23 12:58:43.244316"], ["updated_at", "2016-12-23 12:58:43.244316"]]
   (2.7ms)  COMMIT
  User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  BEGIN
  SQL (3.6ms)  UPDATE "users" SET "language" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["language", "en"], ["updated_at", "2016-12-23 12:58:43.257949"], ["id", 20]]
   (0.8ms)  COMMIT
Redirected to http://10.1.13.116:3007/settings/ad_connections
Completed 200 OK in 32ms (ActiveRecord: 9.6ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (1.7ms)  SELECT COUNT(*) FROM "user_groups"
   (1.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.5ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (14.6ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:58:43.366913"], ["updated_at", "2016-12-23 12:58:43.366913"]]
   (11.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (1.1ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (25.3ms)
  Rendered shared/_loading.html.erb (2.6ms)
Completed 200 OK in 132ms (Views: 98.9ms | ActiveRecord: 23.6ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (2.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (42.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_groups"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (2.7ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (1.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (16.4ms)
   (0.2ms)  BEGIN
  SQL (0.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 12:58:43.596477"], ["updated_at", "2016-12-23 12:58:43.596477"]]
   (0.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (1.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (22.2ms)
  Rendered shared/_loading.html.erb (3.8ms)
Completed 200 OK in 188ms (Views: 116.5ms | ActiveRecord: 57.8ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 15:58:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 15:58:44 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 16:00:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (3.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.8ms)  SELECT COUNT(*) FROM "user_groups"
   (0.6ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (1.2ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (15.5ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 13:00:40.908700"], ["updated_at", "2016-12-23 13:00:40.908700"]]
   (6.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (19.7ms)
  Rendered shared/_loading.html.erb (2.6ms)
Completed 200 OK in 136ms (Views: 106.6ms | ActiveRecord: 19.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:00:41 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:00:41 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/settings/update_ad_settings" for 10.1.13.116 at 2016-12-23 16:00:42 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#update_ad_settings as */*
  Parameters: {"parameters"=>"[{\"id\":null,\"parameter\":\"server\",\"value\":\"10.1.2.38\"},{\"id\":null,\"parameter\":\"port\",\"value\":\"389\"},{\"id\":null,\"parameter\":\"base\",\"value\":\"DC=diasoft,DC=ru\"},{\"id\":null,\"parameter\":\"domain\",\"value\":\"diasoft.ru\"}]", "groups"=>"[{\"id\":null,\"user_group_id\":1,\"ldap_group_name\":\"Департамент Системная Интеграция\"}]"}
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/update_ad_settings"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"parameters\"=>\"[{\\\"id\\\":null,\\\"parameter\\\":\\\"server\\\",\\\"value\\\":\\\"10.1.2.38\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"port\\\",\\\"value\\\":\\\"389\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"base\\\",\\\"value\\\":\\\"DC=diasoft,DC=ru\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"domain\\\",\\\"value\\\":\\\"diasoft.ru\\\"}]\", \"groups\"=>\"[{\\\"id\\\":null,\\\"user_group_id\\\":1,\\\"ldap_group_name\\\":\\\"Департамент Системная Интеграция\\\"}]\", \"controller\"=>\"settings\", \"action\"=>\"update_ad_settings\"}"], ["created_at", "2016-12-23 13:00:42.394936"], ["updated_at", "2016-12-23 13:00:42.394936"]]
   (1.2ms)  COMMIT
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
   (0.4ms)  BEGIN
   (1.2ms)  COMMIT
  LdapParameter Load (1.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "port"]]
   (0.5ms)  BEGIN
   (0.3ms)  COMMIT
  LdapParameter Load (0.4ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "base"]]
   (0.1ms)  BEGIN
   (0.2ms)  COMMIT
  LdapParameter Load (0.4ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "domain"]]
   (0.3ms)  BEGIN
   (0.4ms)  COMMIT
  LdapUserGroup Load (1.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 33ms (Views: 0.6ms | ActiveRecord: 9.4ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 16:01:15 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (2.1ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (10.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (13.8ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (1.0ms)  SELECT COUNT(*) FROM "user_groups"
   (36.2ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.9ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.9ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.6ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.8ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (21.4ms)
   (0.3ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 13:01:16.137151"], ["updated_at", "2016-12-23 13:01:16.137151"]]
   (7.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.3ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (1.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (1.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (22.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (3.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.7ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (3.2ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (5.6ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (149.4ms)
  Rendered shared/_loading.html.erb (11.8ms)
Completed 200 OK in 701ms (Views: 503.5ms | ActiveRecord: 116.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:01:17 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:01:17 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/settings/update_ad_settings" for 10.1.13.116 at 2016-12-23 16:01:18 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#update_ad_settings as */*
  Parameters: {"parameters"=>"[{\"id\":null,\"parameter\":\"server\",\"value\":\"10.1.2.38\"},{\"id\":null,\"parameter\":\"port\",\"value\":\"389\"},{\"id\":null,\"parameter\":\"base\",\"value\":\"DC=diasoft,DC=ru\"},{\"id\":null,\"parameter\":\"domain\",\"value\":\"diasoft.ru\"}]", "groups"=>"[{\"id\":null,\"user_group_id\":1,\"ldap_group_name\":\"Департамент Системная Интеграция\"}]"}
   (8.8ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/update_ad_settings"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"parameters\"=>\"[{\\\"id\\\":null,\\\"parameter\\\":\\\"server\\\",\\\"value\\\":\\\"10.1.2.38\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"port\\\",\\\"value\\\":\\\"389\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"base\\\",\\\"value\\\":\\\"DC=diasoft,DC=ru\\\"},{\\\"id\\\":null,\\\"parameter\\\":\\\"domain\\\",\\\"value\\\":\\\"diasoft.ru\\\"}]\", \"groups\"=>\"[{\\\"id\\\":null,\\\"user_group_id\\\":1,\\\"ldap_group_name\\\":\\\"Департамент Системная Интеграция\\\"}]\", \"controller\"=>\"settings\", \"action\"=>\"update_ad_settings\"}"], ["created_at", "2016-12-23 13:01:18.236010"], ["updated_at", "2016-12-23 13:01:18.236010"]]
   (3.0ms)  COMMIT
  Menu Load (0.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  LdapParameter Load (13.4ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
   (5.2ms)  BEGIN
   (4.3ms)  COMMIT
  LdapParameter Load (0.5ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "port"]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "base"]]
   (0.2ms)  BEGIN
   (0.1ms)  COMMIT
  LdapParameter Load (0.2ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "domain"]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  LdapUserGroup Load (0.4ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 69ms (Views: 0.4ms | ActiveRecord: 39.6ms)


Started POST "/sessions/change_language" for 10.1.13.116 at 2016-12-23 16:01:26 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#change_language as */*
  Parameters: {"lang"=>"0"}
   (0.9ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/change_language"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"lang\"=>\"0\", \"controller\"=>\"sessions\", \"action\"=>\"change_language\"}"], ["created_at", "2016-12-23 13:01:26.165599"], ["updated_at", "2016-12-23 13:01:26.165599"]]
   (5.7ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
  SQL (1.4ms)  UPDATE "users" SET "language" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["language", "ru"], ["updated_at", "2016-12-23 13:01:26.177146"], ["id", 20]]
   (6.6ms)  COMMIT
Redirected to http://10.1.13.116:3007/settings/ad_connections
Completed 200 OK in 35ms (ActiveRecord: 15.4ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 16:01:26 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (8.9ms)
   (0.2ms)  BEGIN
  SQL (1.1ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 13:01:26.266782"], ["updated_at", "2016-12-23 13:01:26.266782"]]
   (21.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.2ms)
  User Load (6.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (6.9ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (1.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (21.3ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 163ms (Views: 113.3ms | ActiveRecord: 44.9ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 16:01:26 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (1.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (7.0ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (1.7ms)  SELECT COUNT(*) FROM "user_groups"
   (1.1ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (1.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.8ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.7ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (52.1ms)
   (0.6ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 13:01:26.852537"], ["updated_at", "2016-12-23 13:01:26.852537"]]
   (6.2ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.3ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (2.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (2.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (4.7ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (2.1ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (63.6ms)
  Rendered shared/_loading.html.erb (5.6ms)
Completed 200 OK in 357ms (Views: 286.7ms | ActiveRecord: 39.3ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:01:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:01:28 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 16:01:30 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (24.5ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 13:01:30.698354"], ["updated_at", "2016-12-23 13:01:30.698354"]]
   (6.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.9ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (1.0ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (27.1ms)
  Rendered shared/_loading.html.erb (2.0ms)
Completed 200 OK in 140ms (Views: 123.9ms | ActiveRecord: 13.9ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:01:31 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:01:31 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 16:01:31 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (23.4ms)  BEGIN
  SQL (6.1ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 13:01:31.494078"], ["updated_at", "2016-12-23 13:01:31.494078"]]
   (25.8ms)  COMMIT
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (3.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  BEGIN
   (0.4ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 104ms (Views: 1.3ms | ActiveRecord: 60.6ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 16:01:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (16.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (1968.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (201.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (207.5ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (217.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (226.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (225.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (211.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (207.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (202.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 4098ms (Views: 0.4ms | ActiveRecord: 3744.3ms)


Started POST "/sessions/logout" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#logout as */*
Redirected to http://10.1.13.116:3007/sessions/login
Completed 200 OK in 13ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.6ms)
  Rendered sessions/login.html.erb within layouts/sessions (15.9ms)
  Rendered shared/_colorlist.html.erb (0.2ms)
  Rendered shared/_loading.html.erb (3.7ms)
Completed 200 OK in 71ms (Views: 69.3ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (16.0ms)
  Rendered shared/_colorlist.html.erb (0.2ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 101ms (Views: 100.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 16:01:38 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:01:39 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:01:39 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 16:05:50 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"Mlw780nsAJcvM0fScaIuU9gwFkYfZlscJqvhPd4cQz6YNVWVR5ZSLA0UXuszp7cJa4TwCuaqatr0PFgAeIc4JQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (2.7ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (3.2ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (3.3ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.3ms)  BEGIN
  SQL (0.6ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 8], ["last_login", "2016-12-23 16:05:50.000000"], ["session_id", "153d19b7add0f2abdea3ab3e7e9970dd4c3d4e9c"], ["updated_at", "2016-12-23 13:05:50.626618"], ["id", 20]]
   (5.2ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 64ms (ActiveRecord: 15.4ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 16:05:50 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (5.3ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 13:05:50.712316"], ["updated_at", "2016-12-23 13:05:50.712316"]]
   (5.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (1.2ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (1.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (1.1ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (43.4ms)
  Rendered shared/_loading.html.erb (2.6ms)
Completed 200 OK in 145ms (Views: 127.7ms | ActiveRecord: 13.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:05:51 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:05:51 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 16:05:51 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (53.6ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 13:05:51.669867"], ["updated_at", "2016-12-23 13:05:51.669867"]]
   (2.2ms)  COMMIT
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (57.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.8ms)  BEGIN
   (5.9ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 138ms (Views: 2.6ms | ActiveRecord: 121.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 16:05:52 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (41.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (878.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (354.0ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (271.9ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (319.2ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (265.5ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (376.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (271.7ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (310.6ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (527.0ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 3661ms (Views: 0.4ms | ActiveRecord: 3616.4ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 16:05:58 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.8ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (15.8ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (1.1ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (24.6ms)
   (0.3ms)  BEGIN
  SQL (5.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 13:05:58.893714"], ["updated_at", "2016-12-23 13:05:58.893714"]]
   (6.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (1.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (33.3ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 229ms (Views: 178.2ms | ActiveRecord: 38.4ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:05:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:05:59 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/logout" for 10.1.13.116 at 2016-12-23 16:31:21 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#logout as */*
Redirected to http://10.1.13.116:3007/sessions/login
Completed 200 OK in 11ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (33.6ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.5ms)
Completed 200 OK in 108ms (Views: 106.9ms | ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (8.3ms)
  Rendered shared/_colorlist.html.erb (0.4ms)
  Rendered shared/_loading.html.erb (12.2ms)
Completed 200 OK in 114ms (Views: 113.0ms | ActiveRecord: 0.0ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 16:31:22 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:31:23 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:31:23 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 16:31:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (26.5ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.0ms)
Completed 200 OK in 80ms (Views: 79.4ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:31:43 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:31:44 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 16:35:25 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (10.2ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (7.2ms)
Completed 200 OK in 103ms (Views: 102.2ms | ActiveRecord: 0.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:35:26 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:35:27 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 16:47:54 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  LdapParameter Load (6.7ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.5ms)
  Rendered sessions/login.html.erb within layouts/sessions (375.9ms)
  Rendered shared/_colorlist.html.erb (0.2ms)
  Rendered shared/_loading.html.erb (5.2ms)
Completed 200 OK in 537ms (Views: 428.7ms | ActiveRecord: 99.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:47:55 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:47:56 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 16:49:31 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"A3a8pyM9YCetP07BdKnyUy9/+59PHn7US478h1sv2QGpH9LBLUcynI8YV/g2rGsJnMsd07bSTxKZGUW6/bSiGg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (7.0ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (18.7ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.3ms)  BEGIN
  SQL (0.4ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 9], ["last_login", "2016-12-23 16:49:31.000000"], ["session_id", "298c50e207bd5d3010afd098afcdb8df5013e74f"], ["updated_at", "2016-12-23 13:49:31.843535"], ["id", 20]]
   (6.8ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 371ms (ActiveRecord: 157.8ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 16:49:31 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (14.8ms)
   (0.3ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 13:49:32.182176"], ["updated_at", "2016-12-23 13:49:32.182176"]]
   (6.2ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (10.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (18.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.6ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (186.9ms)
  Rendered shared/_loading.html.erb (3.8ms)
Completed 200 OK in 726ms (Views: 531.4ms | ActiveRecord: 175.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:49:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:49:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 16:49:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.3ms)  BEGIN
  SQL (1.1ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 13:49:33.720034"], ["updated_at", "2016-12-23 13:49:33.720034"]]
   (8.7ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.6ms)  BEGIN
   (63.1ms)  COMMIT
  Rendered text template (0.1ms)
Completed 200 OK in 145ms (Views: 1.0ms | ActiveRecord: 74.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 16:49:34 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (19.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (2930.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (249.7ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (232.7ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (214.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (242.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (287.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (204.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (201.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (179.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 5109ms (Views: 0.9ms | ActiveRecord: 4811.4ms)


Started GET "/settings/ad_connections" for 10.1.13.116 at 2016-12-23 16:49:39 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (16.6ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (29.7ms)
   (0.3ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2016-12-23 13:49:39.760516"], ["updated_at", "2016-12-23 13:49:39.760516"]]
   (6.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.2ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (2.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (2.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.9ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (45.0ms)
  Rendered shared/_loading.html.erb (3.0ms)
Completed 200 OK in 278ms (Views: 186.5ms | ActiveRecord: 57.3ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 16:49:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 16:49:40 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/logout" for 10.1.13.116 at 2016-12-23 17:54:19 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#logout as */*
Redirected to http://10.1.13.116:3007/sessions/login
Completed 200 OK in 24ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 17:54:19 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  LdapParameter Load (7.4ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.4ms)
  Rendered sessions/login.html.erb within layouts/sessions (65.6ms)
  Rendered shared/_colorlist.html.erb (0.2ms)
  Rendered shared/_loading.html.erb (3.0ms)
Completed 200 OK in 232ms (Views: 222.3ms | ActiveRecord: 7.4ms)


Started GET "/sessions/login" for 10.1.13.116 at 2016-12-23 17:54:19 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login as HTML
  LdapParameter Load (2.6ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (24.4ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 152ms (Views: 148.2ms | ActiveRecord: 2.6ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 17:54:20 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/login_attempt" for 10.1.13.116 at 2016-12-23 17:54:24 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"WpWM4dwTj+9aelPzr7IMXkn/jsPjwn5VgcTms8zJjfLw/OKH0mndVHhdSsrtt5UE+ktojxoOT5NTU1+OalL26Q==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.7ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (12.7ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.3ms)  BEGIN
  SQL (6.9ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 10], ["last_login", "2016-12-23 17:54:24.000000"], ["session_id", "09706580c41e3b87153ba43bf6ced4f8ebeb036f"], ["updated_at", "2016-12-23 14:54:24.569187"], ["id", 20]]
   (11.2ms)  COMMIT
Redirected to http://10.1.13.116:3007/common/index
Completed 302 Found in 99ms (ActiveRecord: 32.4ms)


Started GET "/common/index" for 10.1.13.116 at 2016-12-23 17:54:24 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (17.7ms)
   (0.2ms)  BEGIN
  SQL (18.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "10.1.13.116"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2016-12-23 14:54:24.688433"], ["updated_at", "2016-12-23 14:54:24.688433"]]
   (1.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (37.5ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 188ms (Views: 159.6ms | ActiveRecord: 25.5ms)


Started GET "/assets/ClearSans-Regular.ttf" for 10.1.13.116 at 2016-12-23 17:54:25 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started GET "/assets/ClearSans-Bold.ttf" for 10.1.13.116 at 2016-12-23 17:54:25 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255


Started POST "/sessions/update_user_dates" for 10.1.13.116 at 2016-12-23 17:54:25 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.3ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "10.1.13.116"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2016-12-23 14:54:25.395219"], ["updated_at", "2016-12-23 14:54:25.395219"]]
   (7.9ms)  COMMIT
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (1.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 58ms (Views: 9.2ms | ActiveRecord: 12.4ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 17:54:25 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (1.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (2044.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (230.7ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (222.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (283.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (203.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (216.0ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (191.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (184.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (158.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 3777ms (Views: 0.4ms | ActiveRecord: 3735.4ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 17:55:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (266.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (215.3ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (208.7ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (212.2ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (209.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (214.7ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (197.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (186.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (169.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1920ms (Views: 0.4ms | ActiveRecord: 1880.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 17:56:32 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (206.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (195.0ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (178.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (197.7ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (205.7ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (193.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (170.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (148.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (157.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1724ms (Views: 0.4ms | ActiveRecord: 1654.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 17:57:33 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (393.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (233.4ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (246.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (222.8ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (209.9ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (209.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (168.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (199.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (177.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2135ms (Views: 0.8ms | ActiveRecord: 2060.5ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 17:58:42 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (335.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (223.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (214.7ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (204.8ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (185.2ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (364.1ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (180.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (182.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (183.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2438ms (Views: 0.5ms | ActiveRecord: 2074.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 17:59:42 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (300.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (226.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (206.9ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (224.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (222.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (205.0ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (186.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (166.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (170.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1940ms (Views: 0.3ms | ActiveRecord: 1909.6ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:00:49 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (376.7ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (257.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (215.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (267.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (228.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (199.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (190.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (181.6ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (169.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2124ms (Views: 1.2ms | ActiveRecord: 2086.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:01:49 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (608.8ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (351.6ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (253.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (210.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (604.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (451.7ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (251.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (1152.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (478.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 4472ms (Views: 2.6ms | ActiveRecord: 4362.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:03:03 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (504.4ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (197.7ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (185.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (229.6ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (202.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (195.1ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (170.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (185.2ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (296.7ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2242ms (Views: 0.4ms | ActiveRecord: 2166.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:04:03 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (310.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (203.6ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (224.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (212.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (220.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (222.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (186.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (173.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (173.8ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1984ms (Views: 2.1ms | ActiveRecord: 1927.5ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:05:04 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (324.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (219.4ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (231.7ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (223.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (220.9ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (207.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (173.5ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (182.2ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (176.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2006ms (Views: 0.5ms | ActiveRecord: 1959.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:06:19 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (334.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (203.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (217.7ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (232.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (193.7ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (213.0ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (177.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (174.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (162.5ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1972ms (Views: 0.5ms | ActiveRecord: 1909.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:07:19 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (355.9ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (212.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (204.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (209.5ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (197.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (202.1ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (186.7ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (165.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (177.9ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1970ms (Views: 0.4ms | ActiveRecord: 1912.3ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:08:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (232.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (194.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (203.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (200.8ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (204.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (183.9ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (197.5ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (181.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (169.1ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1817ms (Views: 0.5ms | ActiveRecord: 1767.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:09:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (258.8ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (205.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (197.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (223.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (200.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (194.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (193.7ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (176.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (176.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1876ms (Views: 0.4ms | ActiveRecord: 1825.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:10:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (230.7ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (177.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (188.5ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (179.8ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (170.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (181.7ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (166.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (179.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (145.8ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1664ms (Views: 0.4ms | ActiveRecord: 1621.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:11:29 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (2.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.8ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (312.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (221.0ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (492.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (197.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (210.9ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (153.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (152.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (168.5ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (154.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2115ms (Views: 0.4ms | ActiveRecord: 2065.5ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:12:39 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (247.3ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (224.3ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (217.0ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (348.3ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (332.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (200.1ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (163.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (186.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (177.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2141ms (Views: 0.4ms | ActiveRecord: 2096.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:13:47 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (2.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (300.0ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (229.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (346.1ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (220.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (210.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (201.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (165.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (170.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (160.0ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2075ms (Views: 0.5ms | ActiveRecord: 2005.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:14:56 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (338.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (226.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (237.3ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (252.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (216.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (234.1ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (187.4ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (189.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (172.5ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2130ms (Views: 0.4ms | ActiveRecord: 2055.2ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:15:56 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (300.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (224.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (302.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (208.4ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (236.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (295.6ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (158.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (172.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (172.0ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2143ms (Views: 0.4ms | ActiveRecord: 2070.9ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:17:02 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (338.6ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (211.3ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (209.3ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (217.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (202.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (346.7ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (165.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (195.9ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (180.9ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2166ms (Views: 2.3ms | ActiveRecord: 2067.8ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:18:06 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (235.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (218.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (217.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (229.3ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (285.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (209.9ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (177.1ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (168.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (177.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1958ms (Views: 0.4ms | ActiveRecord: 1919.2ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:19:07 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (328.6ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (195.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (186.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (240.6ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (192.7ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (196.9ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (154.0ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (162.7ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (163.9ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1879ms (Views: 0.5ms | ActiveRecord: 1821.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:20:08 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (358.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (188.4ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (177.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (189.7ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (339.3ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (215.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (161.6ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (142.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (163.3ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2015ms (Views: 0.4ms | ActiveRecord: 1937.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:21:09 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (2.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (399.8ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (382.1ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (226.4ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (201.5ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (251.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (166.8ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (490.3ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (199.8ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (173.2ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2524ms (Views: 0.8ms | ActiveRecord: 2494.5ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 10.1.13.116 at 2016-12-23 18:22:11 +0300
Cannot render console from 10.1.13.116! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (318.5ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (205.8ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (215.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (205.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (210.6ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (376.4ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (292.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (192.1ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (228.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 2272ms (Views: 0.7ms | ActiveRecord: 2246.3ms)


Started GET "/" for 127.0.0.1 at 2017-01-12 15:51:41 +0300
  ActiveRecord::SchemaMigration Load (2.7ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by CommonController#index as HTML
Redirected to http://localhost:3020/sessions/login?target=%2F
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 12ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login?target=%2F" for 127.0.0.1 at 2017-01-12 15:51:41 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/"}
  LdapParameter Load (2.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (1.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (899.2ms)
  Rendered shared/_colorlist.html.erb (0.4ms)
  Rendered shared/_loading.html.erb (2.0ms)
Completed 200 OK in 1018ms (Views: 1004.0ms | ActiveRecord: 12.4ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-12 15:51:42 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-12 15:51:43 +0300


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-01-12 15:51:51 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"RGEoOL4bYTr0LlRExhTPdN1bfRpuAxJNjDHfFSDy8y6xa6v6w7JEUF2svTcXBJebBEiV3q8ys91yQt2ruffSDg==", "username"=>"sensor", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.7ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (2.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "sensor"]]
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (11.7ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.5ms)
Completed 200 OK in 74ms (Views: 42.7ms | ActiveRecord: 7.4ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-12 15:51:51 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-12 15:51:51 +0300


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-01-12 15:52:06 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"TymuY6YPaC8p45okzpoN2b/JHzoWmB+ZEaJ/opvZzXa6Iy2h26ZNRYBhc1cfilU2Ztr3/tepvgnv0X0cAtzsVg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.9ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 101ms (Views: 33.4ms | ActiveRecord: 1.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-12 15:52:06 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-12 15:52:06 +0300


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-01-12 15:52:18 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"oErnmx4wQJt4p0Tp57K7qMCAWttz3cUewYFGl6lXINhVQGRZY5ll8dElrZo2ouNHGZOyH7LsZI4/8kQpMFIB+A==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.6ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (10.1ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (2.0ms)
Completed 200 OK in 87ms (Views: 35.3ms | ActiveRecord: 1.4ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-12 15:52:18 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-12 15:52:18 +0300


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-01-12 15:52:43 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"yj6dx4cYa2gIEcIZ0F6lLBzov/fdW51D0gIJeVUmunY/NB4F+rFOAqGTK2oBTv3DxftXMxxqPNMscQvHzCObVg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.1ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 67ms (Views: 30.0ms | ActiveRecord: 1.2ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-12 15:52:43 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-12 15:52:43 +0300


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-01-12 15:52:51 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"olODBdzKzFnCuNkkH2V0vxZjLya4k6Kb+xKSih5XMjZXWQDHoWPpM2s6MFfOdSxQz3DH4nmiAwsFYZA0h1ITFg==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.5ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (7.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 58ms (Views: 41.8ms | ActiveRecord: 1.4ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-12 15:52:51 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-12 15:52:51 +0300


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-01-12 15:53:00 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"UhAbyYDxe5WiiO3javsuRvL2QttHvSD5/xzUCrve1xunGpgL/Vhe/wsKBJC763apK+WqH4aMgWkBb9a0Itv2Ow==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (6.5ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (1.0ms)
Completed 200 OK in 51ms (Views: 38.3ms | ActiveRecord: 1.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-12 15:53:01 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-12 15:53:01 +0300


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-01-12 15:53:08 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"s0i4BsoNCPgedKQr/42mXoYxKRTIQ0B4j9NB9AhU87lGQjvEt6Qtkrf2TVgunf6xXyLB0Aly4ehxoENKkVHSmQ==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/"}
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (2.3ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.4ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.2ms)  BEGIN
  SQL (0.3ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 11], ["last_login", "2017-01-12 15:53:08.000000"], ["session_id", "24080bac44582530b728024098535bd5951b9306"], ["updated_at", "2017-01-12 12:53:08.862030"], ["id", 20]]
   (2.1ms)  COMMIT
Redirected to http://localhost:3020/
Completed 302 Found in 52ms (ActiveRecord: 8.8ms)


Started GET "/" for 127.0.0.1 at 2017-01-12 15:53:08 +0300
Processing by CommonController#index as HTML
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (9.9ms)
   (0.2ms)  BEGIN
  SQL (3.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2017-01-12 12:53:08.961470"], ["updated_at", "2017-01-12 12:53:08.961470"]]
   (1.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (3.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (2.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (2.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (2.0ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (1.8ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (1.8ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (74.8ms)
  Rendered shared/_loading.html.erb (0.8ms)
Completed 200 OK in 270ms (Views: 221.8ms | ActiveRecord: 36.9ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-01-12 15:53:09 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (1.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-01-12 12:53:09.352194"], ["updated_at", "2017-01-12 12:53:09.352194"]]
   (1.3ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 15ms (Views: 2.7ms | ActiveRecord: 4.0ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 127.0.0.1 at 2017-01-12 15:53:09 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (551.2ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (207.5ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (232.6ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (227.1ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (220.0ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (220.2ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (177.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (166.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (214.6ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.1ms)
Completed 200 OK in 2335ms (Views: 0.8ms | ActiveRecord: 2227.6ms)


Started GET "/settings/user_groups" for 127.0.0.1 at 2017-01-12 15:53:15 +0300
Processing by UserGroupsController#index as HTML
  Menu Load (0.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  UserGroup Load (3.4ms)  SELECT "user_groups".* FROM "user_groups"
  Rendered user_groups/index.html.erb within layouts/application (13.7ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/user_groups"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"user_groups\", \"action\"=>\"index\"}"], ["created_at", "2017-01-12 12:53:15.081537"], ["updated_at", "2017-01-12 12:53:15.081537"]]
   (1.1ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (18.2ms)
  Rendered shared/_loading.html.erb (0.9ms)
Completed 200 OK in 88ms (Views: 71.3ms | ActiveRecord: 11.8ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-01-12 15:53:15 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-01-12 12:53:15.297078"], ["updated_at", "2017-01-12 12:53:15.297078"]]
   (1.3ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.9ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2017-01-12 15:53:17 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_groups"
   (0.4ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.4ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (8.1ms)
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2017-01-12 12:53:18.053510"], ["updated_at", "2017-01-12 12:53:18.053510"]]
   (1.2ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (17.4ms)
  Rendered shared/_loading.html.erb (1.7ms)
Completed 200 OK in 89ms (Views: 73.1ms | ActiveRecord: 9.5ms)


Started POST "/sessions/logout" for 127.0.0.1 at 2017-01-12 15:54:48 +0300
Processing by SessionsController#logout as */*
Redirected to http://localhost:3020/sessions/login
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login" for 127.0.0.1 at 2017-01-12 15:54:48 +0300
Processing by SessionsController#login as HTML
  LdapParameter Load (0.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (19.6ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (2.6ms)
Completed 200 OK in 77ms (Views: 75.0ms | ActiveRecord: 0.3ms)


Started GET "/sessions/login" for 127.0.0.1 at 2017-01-12 15:54:48 +0300
Processing by SessionsController#login as HTML
  LdapParameter Load (0.4ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (10.6ms)
  Rendered shared/_colorlist.html.erb (0.0ms)
  Rendered shared/_loading.html.erb (0.9ms)
Completed 200 OK in 49ms (Views: 47.4ms | ActiveRecord: 0.4ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2017-01-12 15:54:49 +0300


Started POST "/sessions/login_attempt" for 127.0.0.1 at 2017-01-12 16:08:13 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"VtM4EPK0+fq7ifUIcb6jsngMoTmH15WcdXyKfGau1Jij2bvSjx3ckBILHHugrvtdoR9J/UbmNAyLD4jC/6v1uA==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login"}
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (0.4ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.3ms)  BEGIN
  SQL (0.4ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 12], ["last_login", "2017-01-12 16:08:13.000000"], ["session_id", "707f531167a738c90d604fbe1599c9c645296443"], ["updated_at", "2017-01-12 13:08:13.171915"], ["id", 20]]
   (2.0ms)  COMMIT
Redirected to http://localhost:3020/common/index
Completed 302 Found in 32ms (ActiveRecord: 3.9ms)


Started GET "/common/index" for 127.0.0.1 at 2017-01-12 16:08:13 +0300
Processing by CommonController#index as HTML
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered common/index.html.erb within layouts/application (6.5ms)
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/common/index"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2017-01-12 13:08:13.248753"], ["updated_at", "2017-01-12 13:08:13.248753"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.4ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (1.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (33.9ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 128ms (Views: 117.8ms | ActiveRecord: 7.6ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-01-12 16:08:13 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-01-12 13:08:13.709988"], ["updated_at", "2017-01-12 13:08:13.709988"]]
   (1.2ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 2.7ms)


Started GET "/common/get_index_graph?start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0" for 127.0.0.1 at 2017-01-12 16:08:14 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0"}
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (233.7ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (234.2ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (191.2ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (241.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (191.4ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (241.3ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (199.2ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp)
  ActiveDatum Load (215.0ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (206.0ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.0ms)
Completed 200 OK in 1982ms (Views: 0.3ms | ActiveRecord: 1954.5ms)


Started GET "/operations/perfomance" for 127.0.0.1 at 2017-01-12 16:08:16 +0300
Processing by OperationsController#perfomance as HTML
  Menu Load (2.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (1.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (1.0ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_search_list.html.erb (11.9ms)
  Rendered shared/_table.html.erb (33.8ms)
  Rendered operations/perfomance.html.erb within layouts/application (57.6ms)
   (0.2ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/operations/perfomance"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"operations\", \"action\"=>\"perfomance\"}"], ["created_at", "2017-01-12 13:08:16.589004"], ["updated_at", "2017-01-12 13:08:16.589004"]]
   (3.7ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (2.2ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.7ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (34.3ms)
  Rendered shared/_loading.html.erb (3.0ms)
Completed 200 OK in 207ms (Views: 178.2ms | ActiveRecord: 17.7ms)


Started GET "/assets/normal.png" for 127.0.0.1 at 2017-01-12 16:08:16 +0300


Started GET "/assets/warning.png" for 127.0.0.1 at 2017-01-12 16:08:16 +0300


Started GET "/assets/error.png" for 127.0.0.1 at 2017-01-12 16:08:16 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-01-12 16:08:16 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-01-12 13:08:16.897326"], ["updated_at", "2017-01-12 13:08:16.897326"]]
   (1.4ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 2.8ms)


Started GET "/operations/get_perfomance_data?order=count%3BDESC&time=1&start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0&page=1&offset=50&foid=0&export=0" for 127.0.0.1 at 2017-01-12 16:08:16 +0300
Processing by OperationsController#get_perfomance_data as JSON
  Parameters: {"order"=>"count;DESC", "time"=>"1", "start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0", "page"=>"1", "offset"=>"50", "foid"=>"0", "export"=>"0"}
  Menu Load (1.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (1.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (238.1ms)  SELECT AVG(duration) as duration, AVG(user_time) as user_time, AVG(sys_time) as sys_time, COUNT(login_id) as count, "active_data"."operation_id" FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "active_data"."operation_id"
  Operation Load (0.6ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as name, "short_name", "color", "operations"."time_avg", "operations"."sys_time_avg", "operations"."user_time_avg", "operations"."count_avg", "operations"."kpi", "operations"."id", "operation_types"."name" as type_name FROM "operations" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id"
  Rendered text template (0.0ms)
Completed 200 OK in 288ms (Views: 0.6ms | ActiveRecord: 243.1ms)


Started GET "/logins/perfomance" for 127.0.0.1 at 2017-01-12 16:08:18 +0300
Processing by LoginsController#perfomance as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_search_list.html.erb (1.1ms)
  Rendered shared/_table.html.erb (18.1ms)
  Rendered logins/perfomance.html.erb within layouts/application (25.6ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/logins/perfomance"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins\", \"action\"=>\"perfomance\"}"], ["created_at", "2017-01-12 13:08:18.271126"], ["updated_at", "2017-01-12 13:08:18.271126"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (17.7ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 123ms (Views: 108.7ms | ActiveRecord: 8.4ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-01-12 16:08:18 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-01-12 13:08:18.506839"], ["updated_at", "2017-01-12 13:08:18.506839"]]
   (1.1ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 2.6ms)


Started GET "/logins/get_user_perfomance?order=count%3BDESC&time=1&start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0&page=1&offset=50&loginid=0&export=0" for 127.0.0.1 at 2017-01-12 16:08:18 +0300
Processing by LoginsController#get_user_perfomance as JSON
  Parameters: {"order"=>"count;DESC", "time"=>"1", "start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0", "page"=>"1", "offset"=>"50", "loginid"=>"0", "export"=>"0"}
  Menu Load (1.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (2.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (1.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (219.9ms)  SELECT coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, SUM(duration) as duration_sum, SUM(user_time) as user_time_sum, SUM(sys_time) as sys_time_sum, COUNT("active_data"."id") as count, "active_data"."login_id" FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "active_data"."login_id"
  Login Load (0.4ms)  SELECT (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as login_name, "offices"."name" as office_name, "logins"."office_id", "logins"."id" FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered text template (0.0ms)
Completed 200 OK in 257ms (Views: 0.5ms | ActiveRecord: 225.9ms)


Started GET "/operations/perfomance" for 127.0.0.1 at 2017-01-12 16:08:20 +0300
Processing by OperationsController#perfomance as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_search_list.html.erb (1.4ms)
  Rendered shared/_table.html.erb (7.7ms)
  Rendered operations/perfomance.html.erb within layouts/application (12.7ms)
   (0.2ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/operations/perfomance"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"operations\", \"action\"=>\"perfomance\"}"], ["created_at", "2017-01-12 13:08:20.614871"], ["updated_at", "2017-01-12 13:08:20.614871"]]
   (1.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (17.4ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 90ms (Views: 78.5ms | ActiveRecord: 7.2ms)


Started GET "/assets/normal.png" for 127.0.0.1 at 2017-01-12 16:08:20 +0300


Started GET "/assets/warning.png" for 127.0.0.1 at 2017-01-12 16:08:20 +0300


Started GET "/assets/error.png" for 127.0.0.1 at 2017-01-12 16:08:20 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-01-12 16:08:20 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"20"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Fri Oct 21 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"20\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-01-12 13:08:20.858027"], ["updated_at", "2017-01-12 13:08:20.858027"]]
   (1.2ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.4ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.1ms)
Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 3.1ms)


Started GET "/operations/get_perfomance_data?order=count%3BDESC&time=1&start_time=21-10-2016+0%3A0%3A0&end_time=21-10-2016+0%3A0%3A0&page=1&offset=50&foid=0&export=0" for 127.0.0.1 at 2017-01-12 16:08:20 +0300
Processing by OperationsController#get_perfomance_data as JSON
  Parameters: {"order"=>"count;DESC", "time"=>"1", "start_time"=>"21-10-2016 0:0:0", "end_time"=>"21-10-2016 0:0:0", "page"=>"1", "offset"=>"50", "foid"=>"0", "export"=>"0"}
  Menu Load (3.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  ActiveDatum Load (197.0ms)  SELECT AVG(duration) as duration, AVG(user_time) as user_time, AVG(sys_time) as sys_time, COUNT(login_id) as count, "active_data"."operation_id" FROM "active_data" WHERE (end_time::date >= '21-10-2016 0:0:0'::timestamp and end_time::date <= '21-10-2016 0:0:0'::timestamp) GROUP BY "active_data"."operation_id"
  Operation Load (0.6ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as name, "short_name", "color", "operations"."time_avg", "operations"."sys_time_avg", "operations"."user_time_avg", "operations"."count_avg", "operations"."kpi", "operations"."id", "operation_types"."name" as type_name FROM "operations" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id"
  Rendered text template (0.0ms)
Completed 200 OK in 224ms (Views: 0.6ms | ActiveRecord: 203.0ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2017-01-16 12:22:04 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (6.6ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (2.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (3.0ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
Redirected to http://localhost:3020/sessions/login?target=%2Fsettings%2Fad_connections
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 292ms (ActiveRecord: 11.9ms)


Started GET "/sessions/login?target=%2Fsettings%2Fad_connections" for 127.0.0.1 at 2017-01-16 12:22:05 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/settings/ad_connections"}
  LdapParameter Load (3.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.1ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (4.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (116.5ms)
  Rendered shared/_colorlist.html.erb (2.0ms)
  Rendered shared/_loading.html.erb (9.9ms)
Completed 200 OK in 408ms (Views: 392.2ms | ActiveRecord: 3.0ms)


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:05 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:05 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-16 12:22:06 +0300


Started POST "/sessions/login_attempt?target=%2Fsettings%2Fad_connections" for 127.0.0.1 at 2017-01-16 12:22:09 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"My2m0n0cHddGdNvOiBnStdNOUEk2ONysoyNGEW/63TPGJyUQALU4ve/2Mr1ZCYpaCl24jfcJfTxdUESv9v/8Ew==", "username"=>"aignatov", "login_password"=>"[FILTERED]", "ad_auth_check"=>"1", "commit"=>"Login", "target"=>"/settings/ad_connections"}
  LdapParameter Load (2.7ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  User Load (2.2ms)  SELECT  "users".* FROM "users" WHERE "users"."ad_user" = $1 AND "users"."username" = $2 LIMIT 1  [["ad_user", 1], ["username", "aignatov"]]
  LdapUserGroup Load (2.3ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "ldap_user_groups".* FROM "ldap_user_groups" WHERE "ldap_user_groups"."user_group_id" = $1  ORDER BY "ldap_user_groups"."id" ASC LIMIT 1  [["user_group_id", 1]]
   (0.2ms)  BEGIN
  SQL (2.5ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 13], ["last_login", "2017-01-16 12:22:09.000000"], ["session_id", "a0a51f03c90c072706538474615b66ca01d23546"], ["updated_at", "2017-01-16 09:22:09.554628"], ["id", 20]]
   (2.8ms)  COMMIT
Redirected to http://localhost:3020/settings/ad_connections
Completed 302 Found in 75ms (ActiveRecord: 12.8ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2017-01-16 12:22:09 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (0.5ms)  SELECT COUNT(*) FROM "user_groups"
   (0.3ms)  SELECT COUNT(*) FROM "ldap_user_groups"
  LdapParameter Load (0.3ms)  SELECT "ldap_parameters".* FROM "ldap_parameters"
  LdapUserGroup Load (0.6ms)  SELECT "name_rus", "ldap_user_groups"."ldap_group_name", "ldap_user_groups"."user_group_id" FROM "ldap_user_groups" INNER JOIN "user_groups" ON "user_groups"."id" = "ldap_user_groups"."user_group_id"
  LdapParameter Load (0.4ms)  SELECT "ldap_parameters"."parameter", "ldap_parameters"."value" FROM "ldap_parameters"
  LdapUserGroup Load (0.3ms)  SELECT "ldap_user_groups"."user_group_id", "ldap_user_groups"."ldap_group_name" FROM "ldap_user_groups"
  Rendered settings/ad_connections.html.erb within layouts/application (19.6ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 20], ["action", "/settings/ad_connections"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"settings\", \"action\"=>\"ad_connections\"}"], ["created_at", "2017-01-16 09:22:09.662604"], ["updated_at", "2017-01-16 09:22:09.662604"]]
   (1.2ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Menu Load (0.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 20]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
  Rendered shared/_menu.html.erb (20.2ms)
  Rendered shared/_loading.html.erb (2.7ms)
Completed 200 OK in 140ms (Views: 118.6ms | ActiveRecord: 9.5ms)


Started GET "/settings/ad_connections" for 127.0.0.1 at 2017-01-17 15:54:26 +0300
Processing by SettingsController#ad_connections as HTML
  Menu Load (8.2ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (6.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
   (2.0ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 20]]
Redirected to http://localhost:3020/sessions/login?target=%2Fsettings%2Fad_connections
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 267ms (ActiveRecord: 16.4ms)


Started GET "/sessions/login?target=%2Fsettings%2Fad_connections" for 127.0.0.1 at 2017-01-17 15:54:27 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/settings/ad_connections"}
  LdapParameter Load (0.6ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.3ms)
  Rendered sessions/login.html.erb within layouts/sessions (130.1ms)
  Rendered shared/_colorlist.html.erb (1.9ms)
  Rendered shared/_loading.html.erb (7.0ms)
Completed 200 OK in 420ms (Views: 405.3ms | ActiveRecord: 0.7ms)


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:27 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2017-01-17 15:54:28 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-01-17 15:54:28 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-01-17 15:54:28 +0300


Started GET "/" for 127.0.0.1 at 2017-02-21 13:38:09 +0300
  ActiveRecord::SchemaMigration Load (27.6ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by CommonController#index as HTML
Redirected to http://localhost:3100/sessions/login?target=%2F
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 20ms (ActiveRecord: 0.0ms)


Started GET "/sessions/login?target=%2F" for 127.0.0.1 at 2017-02-21 13:38:10 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/"}
  LdapParameter Load (28.5ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (1.2ms)
  Rendered sessions/login.html.erb within layouts/sessions (1042.3ms)
  Rendered shared/_colorlist.html.erb (0.5ms)
  Rendered shared/_loading.html.erb (4.3ms)
Completed 200 OK in 1174ms (Views: 1107.1ms | ActiveRecord: 63.9ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2017-02-21 13:38:11 +0300


Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:11 +0300


Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:11 +0300


Started GET "/assets/turbolinks.self-c5acd7a204f5f25ce7a1d8a0e4d92e28d34c9e2df2c7371cd7af88e147e4ad82.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:11 +0300


Started GET "/assets/shared/globalize.min.self-2bd2b288d7782d5f4a7481b19e6065da08793f724ac0ae668d3b5b77bbdc789f.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:11 +0300


Started GET "/assets/shared/knockout-3.2.0.self-792c88ca8023f42e85dee3c1fefdef3f1618f6dcd323cd818fc092c8e54e479d.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:12 +0300


Started GET "/assets/shared/dx.chartjs.self-c12f4d7e51e91f89835a69b1ff513dbf0b974ae8c91f5b377b0f1faf60b69d34.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:12 +0300


Started GET "/assets/application.self-98043879312240131835e3c08c2b4bec8537ad5d5a6a2cdd9bd66b773fc93f27.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:12 +0300


Started GET "/assets/shared/jquery.nicescroll.min.self-c0aa828bf127f94872be294c1f26bf2068bd12f09e414ff1daa117bf5d11c2ab.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:12 +0300


Started GET "/assets/users.self-6cb855fdbc6beb476b22d77cad6bd15716b607181fada5642d936add8dd0f58d.js?body=1" for 127.0.0.1 at 2017-02-21 13:38:12 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-21 13:38:13 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-21 13:38:13 +0300


Started GET "/sessions/login?target=%2F" for 127.0.0.1 at 2017-02-21 13:38:37 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/"}
  LdapParameter Load (0.5ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered sessions/login.html.erb within layouts/sessions (22.0ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (3.8ms)
Completed 200 OK in 79ms (Views: 76.6ms | ActiveRecord: 0.5ms)


Started POST "/sessions/login_attempt?target=%2F" for 127.0.0.1 at 2017-02-21 14:59:20 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"E1kz9kWxw26eON0o+jjLrqBkM86FtRPoc6+BXJ/MJ5/mU7A0OBjmBDe6NFsrKJNBeXfbCkSEsniN3IPiBskGvw==", "username"=>"sensor", "login_password"=>"[FILTERED]", "ad_auth_check"=>"0", "commit"=>"Login", "target"=>"/"}
  User Load (17.8ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
   (22.0ms)  BEGIN
  SQL (105.7ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 98], ["last_login", "2017-02-21 14:59:20.000000"], ["session_id", "7fe632af49274c9ac147a4940ba71b45ef43c373"], ["updated_at", "2017-02-21 11:59:20.950249"], ["id", 1]]
   (17.2ms)  COMMIT
Redirected to http://localhost:3100/
Completed 302 Found in 686ms (ActiveRecord: 480.4ms)


Started GET "/" for 127.0.0.1 at 2017-02-21 14:59:21 +0300
Processing by CommonController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered common/index.html.erb within layouts/application (37.7ms)
   (0.8ms)  BEGIN
  SQL (56.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"common\", \"action\"=>\"index\"}"], ["created_at", "2017-02-21 11:59:21.391675"], ["updated_at", "2017-02-21 11:59:21.391675"]]
   (6.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.2ms)
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (13.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (6.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (22.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (24.7ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (23.7ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (27.1ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (193.1ms)
  Rendered shared/_loading.html.erb (3.4ms)
Completed 200 OK in 700ms (Views: 441.8ms | ActiveRecord: 238.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-21 14:59:22 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-21 14:59:22 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 14:59:22 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (1.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 11:59:22.740817"], ["updated_at", "2017-02-21 11:59:22.740817"]]
   (7.2ms)  COMMIT
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (4.5ms)  BEGIN
   (0.8ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 38ms (Views: 5.5ms | ActiveRecord: 15.6ms)


Started GET "/common/get_index_graph?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2017-02-21 14:59:23 +0300
Processing by CommonController#get_index_graph as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  User Load (15.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (5.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (1294.1ms)  SELECT AVG(CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END) as status, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY CASE 	WHEN (user_time/user_time_avg) <= 1 THEN 1 
						WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
						ELSE 3
				END
  ActiveDatum Load (224.9ms)  SELECT COUNT(login_id) as "OperCount", date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (255.8ms)  SELECT  COUNT(login_id) as count, (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END)  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (346.0ms)  SELECT  (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as loginname, COUNT(operation_id) as count FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "logins"."name","logins"."full_name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (172.1ms)  SELECT COUNT(DISTINCT(login_id)) as count, date_part('hour'::text,end_time) as hour FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (193.1ms)  SELECT  COUNT(operation_id) as count, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY count DESC LIMIT 5
  ActiveDatum Load (169.9ms)  SELECT SUM(sys_time)/SUM(duration) as sys_time, SUM(user_time)/SUM(duration) as user_time FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp)
  ActiveDatum Load (187.3ms)  SELECT  SUM(sys_time)/SUM(duration) as sys_time, "offices"."name" as office_name FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY sys_time DESC LIMIT 5
  ActiveDatum Load (171.4ms)  SELECT SUM(duration) as val, "offices"."name" as arg FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."name"  ORDER BY val DESC
  Rendered text template (0.1ms)
Completed 200 OK in 3490ms (Views: 1.7ms | ActiveRecord: 3103.1ms)


Started GET "/operations/perfomance" for 127.0.0.1 at 2017-02-21 14:59:26 +0300
Processing by OperationsController#perfomance as HTML
  Menu Load (0.6ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_search_list.html.erb (8.8ms)
  Rendered shared/_table.html.erb (26.8ms)
  Rendered operations/perfomance.html.erb within layouts/application (45.2ms)
   (0.3ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/operations/perfomance"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"operations\", \"action\"=>\"perfomance\"}"], ["created_at", "2017-02-21 11:59:27.023080"], ["updated_at", "2017-02-21 11:59:27.023080"]]
   (6.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.2ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.9ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.6ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (26.6ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 159ms (Views: 135.0ms | ActiveRecord: 14.5ms)


Started GET "/assets/normal.png" for 127.0.0.1 at 2017-02-21 14:59:27 +0300


Started GET "/assets/warning.png" for 127.0.0.1 at 2017-02-21 14:59:27 +0300


Started GET "/assets/error.png" for 127.0.0.1 at 2017-02-21 14:59:27 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 14:59:27 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 11:59:27.934600"], ["updated_at", "2017-02-21 11:59:27.934600"]]
   (5.9ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 21ms (Views: 0.8ms | ActiveRecord: 8.3ms)


Started GET "/operations/get_perfomance_data?order=count%3BDESC&time=1&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&page=1&offset=50&foid=0&export=0" for 127.0.0.1 at 2017-02-21 14:59:27 +0300
Processing by OperationsController#get_perfomance_data as JSON
  Parameters: {"order"=>"count;DESC", "time"=>"1", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "page"=>"1", "offset"=>"50", "foid"=>"0", "export"=>"0"}
  Menu Load (1.1ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (13.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (3.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (363.0ms)  SELECT AVG(duration) as duration, AVG(user_time) as user_time, AVG(sys_time) as sys_time, COUNT(login_id) as count, "active_data"."operation_id" FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "active_data"."operation_id"
  Operation Load (2.3ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as name, "short_name", "color", "operations"."time_avg", "operations"."sys_time_avg", "operations"."user_time_avg", "operations"."count_avg", "operations"."kpi", "operations"."id", "operation_types"."name" as type_name FROM "operations" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id"
  Rendered text template (0.0ms)
Completed 200 OK in 424ms (Views: 0.5ms | ActiveRecord: 385.5ms)


Started GET "/operations/activity" for 127.0.0.1 at 2017-02-21 15:14:25 +0300
Processing by OperationsController#activity as HTML
  Menu Load (1.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_search_list.html.erb (9.8ms)
  Rendered operations/activity.html.erb within layouts/application (27.4ms)
   (0.3ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/operations/activity"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"operations\", \"action\"=>\"activity\"}"], ["created_at", "2017-02-21 12:14:26.192038"], ["updated_at", "2017-02-21 12:14:26.192038"]]
   (6.1ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (36.3ms)
  Rendered shared/_loading.html.erb (4.4ms)
Completed 200 OK in 245ms (Views: 188.2ms | ActiveRecord: 13.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-21 15:14:26 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-21 15:14:26 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 15:14:26 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (1.0ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 12:14:26.984928"], ["updated_at", "2017-02-21 12:14:26.984928"]]
   (16.4ms)  COMMIT
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.1ms)
Completed 200 OK in 92ms (Views: 3.3ms | ActiveRecord: 19.5ms)


Started GET "/operations/get_activity_hour?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&foid=0" for 127.0.0.1 at 2017-02-21 15:14:27 +0300
Processing by OperationsController#get_activity_hour as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "foid"=>"0"}
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  CACHE (0.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (324.5ms)  SELECT COUNT(login_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, date_part('hour'::text,end_time) as hour FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (397.4ms)  SELECT date_part('hour'::text,end_time) as hour, COUNT(login_id)/count(distinct(end_time::date)) as count FROM "active_data" WHERE (end_time::date >= '05.09.2016'::timestamp and end_time::date <= '27.11.2016'::timestamp) AND (EXTRACT(DOW FROM end_time) = 1) GROUP BY date_part('hour'::text,end_time)
  Rendered text template (0.0ms)
Completed 200 OK in 828ms (Views: 0.4ms | ActiveRecord: 724.2ms)


Started GET "/operations/get_activity_top?hour=13&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0" for 127.0.0.1 at 2017-02-21 15:14:30 +0300
Processing by OperationsController#get_activity_top as JSON
  Parameters: {"hour"=>"13", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (147.8ms)  SELECT  (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as name, COUNT(login_id) as count, "active_data"."operation_id", date_part('hour'::text,end_time) as hour FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND (date_part('hour'::text,end_time)  = 13) GROUP BY date_part('hour'::text,end_time), (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END), "active_data"."operation_id"  ORDER BY count DESC LIMIT 30
  Rendered text template (0.0ms)
Completed 200 OK in 194ms (Views: 0.5ms | ActiveRecord: 149.1ms)


Started GET "/operations/get_activity_hour?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&foid=0" for 127.0.0.1 at 2017-02-21 15:14:46 +0300
Processing by OperationsController#get_activity_hour as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "foid"=>"0"}
  Menu Load (1.1ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  CACHE (0.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (160.4ms)  SELECT COUNT(login_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, date_part('hour'::text,end_time) as hour FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (309.4ms)  SELECT date_part('hour'::text,end_time) as hour, COUNT(login_id)/count(distinct(end_time::date)) as count FROM "active_data" WHERE (end_time::date >= '05.09.2016'::timestamp and end_time::date <= '27.11.2016'::timestamp) AND (EXTRACT(DOW FROM end_time) = 1) GROUP BY date_part('hour'::text,end_time)
  Rendered text template (0.0ms)
Completed 200 OK in 492ms (Views: 0.5ms | ActiveRecord: 472.5ms)


Started GET "/operations/get_activity_hour?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&foid=0" for 127.0.0.1 at 2017-02-21 15:14:47 +0300
Processing by OperationsController#get_activity_hour as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "foid"=>"0"}
  Menu Load (0.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (3.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  CACHE (0.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (272.9ms)  SELECT COUNT(login_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, date_part('hour'::text,end_time) as hour FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (716.8ms)  SELECT date_part('hour'::text,end_time) as hour, COUNT(login_id)/count(distinct(end_time::date)) as count FROM "active_data" WHERE (end_time::date >= '05.09.2016'::timestamp and end_time::date <= '27.11.2016'::timestamp) AND (EXTRACT(DOW FROM end_time) = 1) GROUP BY date_part('hour'::text,end_time)
  Rendered text template (0.0ms)
Completed 200 OK in 1027ms (Views: 0.5ms | ActiveRecord: 994.7ms)


Started GET "/operations/get_activity_hour?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&foid=0" for 127.0.0.1 at 2017-02-21 15:14:50 +0300
Processing by OperationsController#get_activity_hour as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "foid"=>"0"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  CACHE (0.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (193.1ms)  SELECT COUNT(login_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, date_part('hour'::text,end_time) as hour FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (383.4ms)  SELECT date_part('hour'::text,end_time) as hour, COUNT(login_id)/count(distinct(end_time::date)) as count FROM "active_data" WHERE (end_time::date >= '05.09.2016'::timestamp and end_time::date <= '27.11.2016'::timestamp) AND (EXTRACT(DOW FROM end_time) = 1) GROUP BY date_part('hour'::text,end_time)
  Rendered text template (0.0ms)
Completed 200 OK in 597ms (Views: 0.3ms | ActiveRecord: 578.0ms)


Started GET "/operations/get_activity_hour?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&foid=0" for 127.0.0.1 at 2017-02-21 15:14:50 +0300
Processing by OperationsController#get_activity_hour as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "foid"=>"0"}
  Menu Load (3.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  CACHE (0.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (272.2ms)  SELECT COUNT(login_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, date_part('hour'::text,end_time) as hour FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (703.5ms)  SELECT date_part('hour'::text,end_time) as hour, COUNT(login_id)/count(distinct(end_time::date)) as count FROM "active_data" WHERE (end_time::date >= '05.09.2016'::timestamp and end_time::date <= '27.11.2016'::timestamp) AND (EXTRACT(DOW FROM end_time) = 1) GROUP BY date_part('hour'::text,end_time)
  Rendered text template (0.0ms)
Completed 200 OK in 1010ms (Views: 0.8ms | ActiveRecord: 981.4ms)


Started GET "/operations/activity" for 127.0.0.1 at 2017-02-21 15:14:52 +0300
Processing by OperationsController#activity as HTML
  Menu Load (0.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_search_list.html.erb (5.9ms)
  Rendered operations/activity.html.erb within layouts/application (12.1ms)
   (0.8ms)  BEGIN
  SQL (1.8ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/operations/activity"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"operations\", \"action\"=>\"activity\"}"], ["created_at", "2017-02-21 12:14:52.578429"], ["updated_at", "2017-02-21 12:14:52.578429"]]
   (4.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (2.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (1.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (2.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (1.6ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (1.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.5ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (61.9ms)
  Rendered shared/_loading.html.erb (10.5ms)
Completed 200 OK in 212ms (Views: 175.8ms | ActiveRecord: 22.5ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 15:14:53 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 12:14:53.313784"], ["updated_at", "2017-02-21 12:14:53.313784"]]
   (6.1ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 7.7ms)


Started GET "/operations/get_activity_hour?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&foid=0" for 127.0.0.1 at 2017-02-21 15:14:53 +0300
Processing by OperationsController#get_activity_hour as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "foid"=>"0"}
  Menu Load (1.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "operations"]]
  User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (14.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 2], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  CACHE (0.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (239.7ms)  SELECT COUNT(login_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, date_part('hour'::text,end_time) as hour FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY date_part('hour'::text,end_time)
  ActiveDatum Load (337.7ms)  SELECT date_part('hour'::text,end_time) as hour, COUNT(login_id)/count(distinct(end_time::date)) as count FROM "active_data" WHERE (end_time::date >= '05.09.2016'::timestamp and end_time::date <= '27.11.2016'::timestamp) AND (EXTRACT(DOW FROM end_time) = 1) GROUP BY date_part('hour'::text,end_time)
  Rendered text template (0.0ms)
Completed 200 OK in 663ms (Views: 0.4ms | ActiveRecord: 594.5ms)


Started GET "/logins/map" for 127.0.0.1 at 2017-02-21 15:34:53 +0300
Processing by LoginsController#map as HTML
  Menu Load (0.7ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_search_list.html.erb (12.7ms)
  Rendered shared/_table.html.erb (41.7ms)
  Rendered logins/map.html.erb within layouts/application (78.5ms)
   (0.2ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/logins/map"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins\", \"action\"=>\"map\"}"], ["created_at", "2017-02-21 12:34:53.764756"], ["updated_at", "2017-02-21 12:34:53.764756"]]
   (5.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.3ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.9ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (42.4ms)
  Rendered shared/_loading.html.erb (2.6ms)
Completed 200 OK in 279ms (Views: 237.2ms | ActiveRecord: 12.8ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-21 15:34:54 +0300


Started GET "/assets/operation.png" for 127.0.0.1 at 2017-02-21 15:34:54 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-21 15:34:54 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 15:34:54 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (1.1ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 12:34:54.526423"], ["updated_at", "2017-02-21 12:34:54.526423"]]
   (1.4ms)  COMMIT
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 18ms (Views: 0.8ms | ActiveRecord: 4.6ms)


Started GET "/logins/get_user_map?order=end_time%3BASC&time=1&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&page=1&offset=50&Login_ID=0&export=0" for 127.0.0.1 at 2017-02-21 15:34:54 +0300
Processing by LoginsController#get_user_map as JSON
  Parameters: {"order"=>"end_time;ASC", "time"=>"1", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "page"=>"1", "offset"=>"50", "Login_ID"=>"0", "export"=>"0"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (4.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (5.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (8.8ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "active_data"."start_time", "active_data"."end_time", user_time/user_time_avg as status, "kpi", "active_data"."duration", "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "time_avg", "user_time_avg", "sys_time_avg", "active_data"."id", "color", "active_data"."module", "active_data"."node", "short_name", "active_data"."operation_id" FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 0]]
  ActiveDatum Load (0.9ms)  SELECT SUM(sys_time)/SUM(duration) as percents FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 0]]
  ActiveDatum Load (5.9ms)  SELECT "active_data"."start_time", "active_data"."end_time", (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "active_data"."id", "active_data"."duration", "active_data"."operation_id", (CASE 	
            WHEN (user_time/user_time_avg) <= 1 THEN 1 
			WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
			ELSE 3
		END) as status FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  ORDER BY end_time ASC  [["login_id", 0]]
  Rendered text template (0.0ms)
Completed 200 OK in 97ms (Views: 1.3ms | ActiveRecord: 26.3ms)


Started GET "/common/login_sort?string=%25%25" for 127.0.0.1 at 2017-02-21 15:35:01 +0300
Processing by CommonController#login_sort as JSON
  Parameters: {"string"=>"%%"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  Login Load (8.5ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN name ELSE full_name END) as name FROM "logins" WHERE (lower(name) LIKE lower('%%') = true OR lower(full_name) LIKE lower('%%') = true)
  Rendered text template (0.0ms)
Completed 200 OK in 25ms (Views: 0.4ms | ActiveRecord: 10.5ms)


Started GET "/logins/get_user_map?order=end_time%3BASC&time=1&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&page=1&offset=50&Login_ID=4&export=0" for 127.0.0.1 at 2017-02-21 15:35:02 +0300
Processing by LoginsController#get_user_map as JSON
  Parameters: {"order"=>"end_time;ASC", "time"=>"1", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "page"=>"1", "offset"=>"50", "Login_ID"=>"4", "export"=>"0"}
  Menu Load (0.7ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (446.3ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "active_data"."start_time", "active_data"."end_time", user_time/user_time_avg as status, "kpi", "active_data"."duration", "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "time_avg", "user_time_avg", "sys_time_avg", "active_data"."id", "color", "active_data"."module", "active_data"."node", "short_name", "active_data"."operation_id" FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 4]]
  ActiveDatum Load (149.1ms)  SELECT SUM(sys_time)/SUM(duration) as percents FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 4]]
  ActiveDatum Load (209.9ms)  SELECT "active_data"."start_time", "active_data"."end_time", (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "active_data"."id", "active_data"."duration", "active_data"."operation_id", (CASE 	
            WHEN (user_time/user_time_avg) <= 1 THEN 1 
			WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
			ELSE 3
		END) as status FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  ORDER BY end_time ASC  [["login_id", 4]]
  Rendered text template (0.0ms)
Completed 200 OK in 1189ms (Views: 0.4ms | ActiveRecord: 807.1ms)


Started GET "/assets/error.png" for 127.0.0.1 at 2017-02-21 15:35:03 +0300


Started GET "/assets/normal.png" for 127.0.0.1 at 2017-02-21 15:35:03 +0300


Started GET "/assets/warning.png" for 127.0.0.1 at 2017-02-21 15:35:04 +0300


Started GET "/common/login_sort?string=%25%25" for 127.0.0.1 at 2017-02-21 15:35:05 +0300
Processing by CommonController#login_sort as JSON
  Parameters: {"string"=>"%%"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (3.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  Login Load (4.2ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN name ELSE full_name END) as name FROM "logins" WHERE (lower(name) LIKE lower('%%') = true OR lower(full_name) LIKE lower('%%') = true)
  Rendered text template (0.0ms)
Completed 200 OK in 17ms (Views: 0.6ms | ActiveRecord: 8.1ms)


Started GET "/logins/get_user_map?order=end_time%3BASC&time=1&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&page=1&offset=50&Login_ID=5&export=0" for 127.0.0.1 at 2017-02-21 15:35:06 +0300
Processing by LoginsController#get_user_map as JSON
  Parameters: {"order"=>"end_time;ASC", "time"=>"1", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "page"=>"1", "offset"=>"50", "Login_ID"=>"5", "export"=>"0"}
  Menu Load (1.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (146.9ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "active_data"."start_time", "active_data"."end_time", user_time/user_time_avg as status, "kpi", "active_data"."duration", "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "time_avg", "user_time_avg", "sys_time_avg", "active_data"."id", "color", "active_data"."module", "active_data"."node", "short_name", "active_data"."operation_id" FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 5]]
  ActiveDatum Load (91.5ms)  SELECT SUM(sys_time)/SUM(duration) as percents FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 5]]
  ActiveDatum Load (87.9ms)  SELECT "active_data"."start_time", "active_data"."end_time", (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "active_data"."id", "active_data"."duration", "active_data"."operation_id", (CASE 	
            WHEN (user_time/user_time_avg) <= 1 THEN 1 
			WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
			ELSE 3
		END) as status FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  ORDER BY end_time ASC  [["login_id", 5]]
  Rendered text template (0.0ms)
Completed 200 OK in 662ms (Views: 0.4ms | ActiveRecord: 329.7ms)


Started GET "/logins/statistic" for 127.0.0.1 at 2017-02-21 15:39:04 +0300
Processing by LoginsController#statistic as HTML
  Menu Load (14.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (7.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Login Load (29.2ms)  SELECT DISTINCT(upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1))) as letter FROM "logins"  ORDER BY upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) ASC
  Login Load (14.4ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'A')
  Login Load (0.4ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'B')
  Login Load (0.4ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'I')
  Login Load (0.4ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'M')
  Login Load (0.4ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'N')
  Login Load (0.5ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'R')
  Login Load (0.4ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'V')
  Login Load (6.6ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'В')
  Login Load (0.4ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins" WHERE (upper(substring((CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END),1,1)) = 'И')
  Rendered shared/_search_list.html.erb (2.6ms)
  Rendered shared/_table.html.erb (14.8ms)
  Login Load (5.9ms)  SELECT (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as login_name, "logins"."id", "offices"."name" as office_name, "logins"."office_id" FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered logins/statistic.html.erb within layouts/application (106.7ms)
   (0.2ms)  BEGIN
  SQL (2.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/logins/statistic"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins\", \"action\"=>\"statistic\"}"], ["created_at", "2017-02-21 12:39:05.095398"], ["updated_at", "2017-02-21 12:39:05.095398"]]
   (6.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (17.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (2.7ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (4.0ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (34.6ms)
  Rendered shared/_loading.html.erb (3.1ms)
Completed 200 OK in 272ms (Views: 147.0ms | ActiveRecord: 118.8ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 15:39:05 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (5.2ms)  BEGIN
  SQL (4.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 12:39:06.052531"], ["updated_at", "2017-02-21 12:39:06.052531"]]
   (1.6ms)  COMMIT
  User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (20.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (3.9ms)  BEGIN
   (0.3ms)  COMMIT
  Rendered text template (0.1ms)
Completed 200 OK in 53ms (Views: 1.4ms | ActiveRecord: 36.9ms)


Started GET "/logins/get_user_compare_graph?order=count%3BDESC&time=1&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&page=1&offset=50&loginid=&export=0" for 127.0.0.1 at 2017-02-21 15:39:06 +0300
Processing by LoginsController#get_user_compare_graph as JSON
  Parameters: {"order"=>"count;DESC", "time"=>"1", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "page"=>"1", "offset"=>"50", "loginid"=>"", "export"=>"0"}
  Menu Load (14.5ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (3.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.1ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (501.3ms)  SELECT (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as login_name, "active_data"."login_id", COUNT(operation_id) as count, SUM(duration) as duration, SUM(user_time) as user_time, SUM(sys_time) as sys_time FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND (lower('') LIKE lower(concat('%,',login_id,',%')) = true) GROUP BY "active_data"."login_id", "full_name", "logins"."name"
  Rendered text template (0.0ms)
Completed 200 OK in 544ms (Views: 0.5ms | ActiveRecord: 520.6ms)


Started GET "/office/activity" for 127.0.0.1 at 2017-02-21 15:39:09 +0300
Processing by OfficeController#activity as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "office"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 3], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered office/activity.html.erb within layouts/application (1.7ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/office/activity"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"office\", \"action\"=>\"activity\"}"], ["created_at", "2017-02-21 12:39:09.276785"], ["updated_at", "2017-02-21 12:39:09.276785"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (1.2ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (20.2ms)
  Rendered shared/_loading.html.erb (1.1ms)
Completed 200 OK in 83ms (Views: 69.3ms | ActiveRecord: 7.5ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 15:39:09 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (1.1ms)  BEGIN
  SQL (3.2ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 12:39:09.716325"], ["updated_at", "2017-02-21 12:39:09.716325"]]
   (5.9ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.1ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 22ms (Views: 0.5ms | ActiveRecord: 11.4ms)


Started GET "/office/get_office_activity?start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&order=opercount+DESC" for 127.0.0.1 at 2017-02-21 15:39:09 +0300
Processing by OfficeController#get_office_activity as JSON
  Parameters: {"start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "order"=>"opercount DESC"}
  Menu Load (4.0ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "office"]]
  User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (24.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 3], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (8.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  CACHE (0.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (227.2ms)  SELECT coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, "offices"."name" as office_name, COUNT(login_id) as opercount, COUNT(DISTINCT(login_id)) as uniqueuser, "offices"."id" as office_id FROM "active_data" INNER JOIN "logins" ON "logins"."id" = "active_data"."login_id" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "offices"."id", "offices"."name"  ORDER BY opercount DESC
  Login Load (1.4ms)  SELECT COUNT(id) as alluser, "logins"."office_id" FROM "logins" GROUP BY "logins"."office_id"
  Rendered text template (0.0ms)
Completed 200 OK in 293ms (Views: 0.5ms | ActiveRecord: 267.5ms)


Started GET "/assets/normal.png" for 127.0.0.1 at 2017-02-21 15:39:10 +0300


Started GET "/assets/warning.png" for 127.0.0.1 at 2017-02-21 15:39:10 +0300


Started GET "/assets/error.png" for 127.0.0.1 at 2017-02-21 15:39:10 +0300


Started GET "/settings/logins_info" for 127.0.0.1 at 2017-02-21 15:42:06 +0300
Processing by LoginsInfoController#index as HTML
  Menu Load (0.7ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_table.html.erb (30.3ms)
  Rendered logins_info/index.html.erb within layouts/application (39.8ms)
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"index\"}"], ["created_at", "2017-02-21 12:42:06.288726"], ["updated_at", "2017-02-21 12:42:06.288726"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.7ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (27.6ms)
  Rendered shared/_loading.html.erb (2.9ms)
Completed 200 OK in 232ms (Views: 171.8ms | ActiveRecord: 12.6ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-21 15:42:06 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-21 15:42:06 +0300


Started GET "/settings/logins_info/get_login_list?order=rating%3BDESC&time=1&start_time=21-2-2017+15%3A42%3A6&end_time=21-2-2017+15%3A42%3A6&page=1&offset=50&export=0" for 127.0.0.1 at 2017-02-21 15:42:06 +0300
Processing by LoginsInfoController#get_login_list as JSON
  Parameters: {"order"=>"rating;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:42:6", "end_time"=>"21-2-2017 15:42:6", "page"=>"1", "offset"=>"50", "export"=>"0"}
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (992.1ms)  SELECT coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red, "active_data"."login_id", COUNT(operation_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" GROUP BY "active_data"."login_id"
  Login Load (2.3ms)  SELECT "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered text template (0.0ms)
Completed 200 OK in 1015ms (Views: 0.4ms | ActiveRecord: 996.5ms)


Started GET "/settings/logins_info/3" for 127.0.0.1 at 2017-02-21 15:42:14 +0300
Processing by LoginsInfoController#show as HTML
  Parameters: {"id"=>"3"}
  Menu Load (0.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Login Load (14.2ms)  SELECT  "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name, "logins"."phone", "logins"."mobile_phone" FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE "logins"."id" = $1 LIMIT 1  [["id", 3]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (261.7ms)  SELECT EXTRACT(DOW FROM end_time) as dow, (COUNT(operation_id)/COUNT(DISTINCT(end_time::date)))/(SUM(user_time/3600)/COUNT(DISTINCT(end_time::date))) as busy, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."login_id" = $1 GROUP BY EXTRACT(DOW FROM end_time)  [["login_id", 3]]
  Rendered shared/_table.html.erb (9.5ms)
  Rendered logins_info/show.html.erb within layouts/application (26.7ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info/3"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"show\", \"id\"=>\"3\"}"], ["created_at", "2017-02-21 12:42:14.761438"], ["updated_at", "2017-02-21 12:42:14.761438"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (5.0ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (5.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (9.8ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (33.4ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 411ms (Views: 91.8ms | ActiveRecord: 302.7ms)


Started GET "/assets/logins_photo/_empty-9fd0f1919d5e69db00605875bc8b90677694c0becd84b75b7fcc371f2359889d.png" for 127.0.0.1 at 2017-02-21 15:42:15 +0300


Started GET "/settings/logins_info/3/get_login_detailed_info?order=date%3BDESC&time=1&start_time=21-2-2017+15%3A42%3A15&end_time=21-2-2017+15%3A42%3A15&page=1&offset=50&login_id=3&time_type=1&export=0" for 127.0.0.1 at 2017-02-21 15:42:15 +0300
Processing by LoginsInfoController#get_login_detailed_info as JSON
  Parameters: {"order"=>"date;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:42:15", "end_time"=>"21-2-2017 15:42:15", "page"=>"1", "offset"=>"50", "login_id"=>"3", "time_type"=>"1", "export"=>"0", "id"=>"3"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (19.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (619.3ms)  SELECT SUM(duration) as duration_sum, SUM(user_time) as user_time_sum, SUM(sys_time) as sys_time_sum, COUNT(DISTINCT(operation_id)) as unique_oper, COUNT(operation_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, (end_time::date) as date FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."login_id" = $1 GROUP BY end_time::date  [["login_id", 3]]
  Rendered text template (0.0ms)
Completed 200 OK in 689ms (Views: 0.8ms | ActiveRecord: 640.5ms)


Started GET "/settings/logins_info/get_login_list?order=rating%3BDESC&time=1&start_time=21-2-2017+15%3A42%3A22&end_time=21-2-2017+15%3A42%3A22&page=1&offset=50&export=0" for 127.0.0.1 at 2017-02-21 15:42:22 +0300
Processing by LoginsInfoController#get_login_list as JSON
  Parameters: {"order"=>"rating;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:42:22", "end_time"=>"21-2-2017 15:42:22", "page"=>"1", "offset"=>"50", "export"=>"0"}
  Menu Load (1.6ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (6.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (2.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (13.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (780.4ms)  SELECT coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red, "active_data"."login_id", COUNT(operation_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" GROUP BY "active_data"."login_id"
  Login Load (1.7ms)  SELECT "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered text template (0.0ms)
Completed 200 OK in 828ms (Views: 0.4ms | ActiveRecord: 806.1ms)


Started GET "/settings/logins_info/3/edit" for 127.0.0.1 at 2017-02-21 15:42:26 +0300
Processing by LoginsInfoController#edit as HTML
  Parameters: {"id"=>"3"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Login Load (0.4ms)  SELECT  "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "logins"."office_id", "logins"."phone", "logins"."mobile_phone" FROM "logins" WHERE "logins"."id" = $1 LIMIT 1  [["id", 3]]
  Office Load (0.4ms)  SELECT "offices".* FROM "offices"
  Rendered logins_info/edit.html.erb within layouts/application (69.0ms)
   (0.2ms)  BEGIN
  SQL (2.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info/3/edit"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"edit\", \"id\"=>\"3\"}"], ["created_at", "2017-02-21 12:42:26.335314"], ["updated_at", "2017-02-21 12:42:26.335314"]]
   (4.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (13.2ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 145ms (Views: 99.8ms | ActiveRecord: 38.7ms)


Started GET "/settings/logins_info" for 127.0.0.1 at 2017-02-21 15:42:37 +0300
Processing by LoginsInfoController#index as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_table.html.erb (17.2ms)
  Rendered logins_info/index.html.erb within layouts/application (21.1ms)
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"index\"}"], ["created_at", "2017-02-21 12:42:37.642843"], ["updated_at", "2017-02-21 12:42:37.642843"]]
   (2.0ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (14.0ms)
  Rendered shared/_loading.html.erb (2.1ms)
Completed 200 OK in 106ms (Views: 93.2ms | ActiveRecord: 7.8ms)


Started GET "/settings/logins_info/get_login_list?order=rating%3BDESC&time=1&start_time=21-2-2017+15%3A42%3A26&end_time=21-2-2017+15%3A42%3A26&page=1&offset=50&export=0" for 127.0.0.1 at 2017-02-21 15:42:37 +0300
Processing by LoginsInfoController#get_login_list as JSON
  Parameters: {"order"=>"rating;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:42:26", "end_time"=>"21-2-2017 15:42:26", "page"=>"1", "offset"=>"50", "export"=>"0"}
  Menu Load (0.7ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.6ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (886.6ms)  SELECT coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red, "active_data"."login_id", COUNT(operation_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" GROUP BY "active_data"."login_id"
  Login Load (0.6ms)  SELECT "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered text template (0.0ms)
Completed 200 OK in 908ms (Views: 0.3ms | ActiveRecord: 891.1ms)


Started GET "/settings/logins_info/8" for 127.0.0.1 at 2017-02-21 15:42:41 +0300
Processing by LoginsInfoController#show as HTML
  Parameters: {"id"=>"8"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Login Load (2.5ms)  SELECT  "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name, "logins"."phone", "logins"."mobile_phone" FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE "logins"."id" = $1 LIMIT 1  [["id", 8]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (226.0ms)  SELECT EXTRACT(DOW FROM end_time) as dow, (COUNT(operation_id)/COUNT(DISTINCT(end_time::date)))/(SUM(user_time/3600)/COUNT(DISTINCT(end_time::date))) as busy, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."login_id" = $1 GROUP BY EXTRACT(DOW FROM end_time)  [["login_id", 8]]
  Rendered shared/_table.html.erb (9.6ms)
  Rendered logins_info/show.html.erb within layouts/application (16.7ms)
   (0.2ms)  BEGIN
  SQL (1.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info/8"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"show\", \"id\"=>\"8\"}"], ["created_at", "2017-02-21 12:42:41.421295"], ["updated_at", "2017-02-21 12:42:41.421295"]]
   (1.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.0ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (11.2ms)
  Rendered shared/_loading.html.erb (1.4ms)
Completed 200 OK in 355ms (Views: 107.6ms | ActiveRecord: 236.8ms)


Started GET "/settings/logins_info/8/get_login_detailed_info?order=date%3BDESC&time=1&start_time=21-2-2017+15%3A42%3A41&end_time=21-2-2017+15%3A42%3A41&page=1&offset=50&login_id=8&time_type=1&export=0" for 127.0.0.1 at 2017-02-21 15:42:41 +0300
Processing by LoginsInfoController#get_login_detailed_info as JSON
  Parameters: {"order"=>"date;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:42:41", "end_time"=>"21-2-2017 15:42:41", "page"=>"1", "offset"=>"50", "login_id"=>"8", "time_type"=>"1", "export"=>"0", "id"=>"8"}
  Menu Load (1.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (394.7ms)  SELECT SUM(duration) as duration_sum, SUM(user_time) as user_time_sum, SUM(sys_time) as sys_time_sum, COUNT(DISTINCT(operation_id)) as unique_oper, COUNT(operation_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, (end_time::date) as date FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."login_id" = $1 GROUP BY end_time::date  [["login_id", 8]]
  Rendered text template (0.0ms)
Completed 200 OK in 437ms (Views: 0.9ms | ActiveRecord: 396.9ms)


Started GET "/settings/logins_info/get_login_list?order=rating%3BDESC&time=1&start_time=21-2-2017+15%3A42%3A44&end_time=21-2-2017+15%3A42%3A44&page=1&offset=50&export=0" for 127.0.0.1 at 2017-02-21 15:42:44 +0300
Processing by LoginsInfoController#get_login_list as JSON
  Parameters: {"order"=>"rating;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:42:44", "end_time"=>"21-2-2017 15:42:44", "page"=>"1", "offset"=>"50", "export"=>"0"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (815.8ms)  SELECT coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red, "active_data"."login_id", COUNT(operation_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" GROUP BY "active_data"."login_id"
  Login Load (2.5ms)  SELECT "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered text template (0.0ms)
Completed 200 OK in 840ms (Views: 0.5ms | ActiveRecord: 820.3ms)


Started GET "/settings/logins_info/8/edit" for 127.0.0.1 at 2017-02-21 15:42:47 +0300
Processing by LoginsInfoController#edit as HTML
  Parameters: {"id"=>"8"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Login Load (0.4ms)  SELECT  "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "logins"."office_id", "logins"."phone", "logins"."mobile_phone" FROM "logins" WHERE "logins"."id" = $1 LIMIT 1  [["id", 8]]
  Office Load (0.4ms)  SELECT "offices".* FROM "offices"
  Rendered logins_info/edit.html.erb within layouts/application (3.2ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info/8/edit"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"edit\", \"id\"=>\"8\"}"], ["created_at", "2017-02-21 12:42:47.600691"], ["updated_at", "2017-02-21 12:42:47.600691"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.6ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (17.7ms)
  Rendered shared/_loading.html.erb (1.5ms)
Completed 200 OK in 82ms (Views: 68.0ms | ActiveRecord: 7.6ms)


Started PATCH "/settings/logins_info/8" for 127.0.0.1 at 2017-02-21 15:43:37 +0300
Processing by LoginsInfoController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"KtHKIJsxmNIAdV4TdOBgwDJ5mfDpb1v3MJzDVTOkIZ3f20ni5pi9uKn3t2Cl8Dgv62pxNChe+mfO78HrqqEAvQ==", "login"=>{"full_name"=>"Андрей Попов Николаевич", "office_id"=>"4", "department"=>"Выдача кредитов", "email"=>"apopov@bank.ru", "phone"=>"8(495)123-45-67", "mobile_phone"=>"8(910)123-45-67"}, "commit"=>"Обновить", "id"=>"8"}
  Menu Load (0.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Login Load (0.3ms)  SELECT  "logins".* FROM "logins" WHERE "logins"."id" = $1 LIMIT 1  [["id", 8]]
   (0.1ms)  BEGIN
  SQL (0.3ms)  UPDATE "logins" SET "full_name" = $1, "department" = $2, "email" = $3, "phone" = $4, "mobile_phone" = $5, "updated_at" = $6 WHERE "logins"."id" = $7  [["full_name", "Андрей Попов Николаевич"], ["department", "Выдача кредитов"], ["email", "apopov@bank.ru"], ["phone", "8(495)123-45-67"], ["mobile_phone", "8(910)123-45-67"], ["updated_at", "2017-02-21 12:43:37.895014"], ["id", 8]]
   (1.6ms)  COMMIT
Redirected to http://localhost:3100/settings/logins_info
Completed 302 Found in 20ms (ActiveRecord: 3.6ms)


Started GET "/settings/logins_info" for 127.0.0.1 at 2017-02-21 15:43:37 +0300
Processing by LoginsInfoController#index as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_table.html.erb (22.0ms)
  Rendered logins_info/index.html.erb within layouts/application (26.4ms)
   (0.2ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"index\"}"], ["created_at", "2017-02-21 12:43:38.008834"], ["updated_at", "2017-02-21 12:43:38.008834"]]
   (6.5ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (1.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (31.4ms)
  Rendered shared/_loading.html.erb (2.4ms)
Completed 200 OK in 164ms (Views: 146.3ms | ActiveRecord: 12.9ms)


Started GET "/settings/logins_info/get_login_list?order=rating%3BDESC&time=1&start_time=21-2-2017+15%3A43%3A38&end_time=21-2-2017+15%3A43%3A38&page=1&offset=50&export=0" for 127.0.0.1 at 2017-02-21 15:43:38 +0300
Processing by LoginsInfoController#get_login_list as JSON
  Parameters: {"order"=>"rating;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:43:38", "end_time"=>"21-2-2017 15:43:38", "page"=>"1", "offset"=>"50", "export"=>"0"}
  Menu Load (23.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (4.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.7ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (760.2ms)  SELECT coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red, "active_data"."login_id", COUNT(operation_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" GROUP BY "active_data"."login_id"
  Login Load (0.4ms)  SELECT "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered text template (0.0ms)
Completed 200 OK in 811ms (Views: 0.3ms | ActiveRecord: 791.1ms)


Started GET "/settings/logins_info/8" for 127.0.0.1 at 2017-02-21 15:43:40 +0300
Processing by LoginsInfoController#show as HTML
  Parameters: {"id"=>"8"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Login Load (2.5ms)  SELECT  "logins"."id", "logins"."name", "logins"."full_name", "logins"."department", "logins"."email", "offices"."name" as office_name, "logins"."phone", "logins"."mobile_phone" FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id" WHERE "logins"."id" = $1 LIMIT 1  [["id", 8]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (204.0ms)  SELECT EXTRACT(DOW FROM end_time) as dow, (COUNT(operation_id)/COUNT(DISTINCT(end_time::date)))/(SUM(user_time/3600)/COUNT(DISTINCT(end_time::date))) as busy, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/CASE WHEN (user_time_avg > 0) THEN user_time_avg ELSE 1 END) > kpi THEN 1 ELSE 0 END),0) as red FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."login_id" = $1 GROUP BY EXTRACT(DOW FROM end_time)  [["login_id", 8]]
  Rendered shared/_table.html.erb (9.2ms)
  Rendered logins_info/show.html.erb within layouts/application (22.7ms)
   (0.3ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/logins_info/8"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins_info\", \"action\"=>\"show\", \"id\"=>\"8\"}"], ["created_at", "2017-02-21 12:43:41.198283"], ["updated_at", "2017-02-21 12:43:41.198283"]]
   (1.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.6ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (14.3ms)
  Rendered shared/_loading.html.erb (1.9ms)
Completed 200 OK in 310ms (Views: 87.2ms | ActiveRecord: 214.3ms)


Started GET "/settings/logins_info/8/get_login_detailed_info?order=date%3BDESC&time=1&start_time=21-2-2017+15%3A43%3A41&end_time=21-2-2017+15%3A43%3A41&page=1&offset=50&login_id=8&time_type=1&export=0" for 127.0.0.1 at 2017-02-21 15:43:41 +0300
Processing by LoginsInfoController#get_login_detailed_info as JSON
  Parameters: {"order"=>"date;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:43:41", "end_time"=>"21-2-2017 15:43:41", "page"=>"1", "offset"=>"50", "login_id"=>"8", "time_type"=>"1", "export"=>"0", "id"=>"8"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (410.9ms)  SELECT SUM(duration) as duration_sum, SUM(user_time) as user_time_sum, SUM(sys_time) as sys_time_sum, COUNT(DISTINCT(operation_id)) as unique_oper, COUNT(operation_id) as count, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, (end_time::date) as date FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."login_id" = $1 GROUP BY end_time::date  [["login_id", 8]]
  Rendered text template (0.0ms)
Completed 200 OK in 445ms (Views: 0.4ms | ActiveRecord: 412.1ms)


Started GET "/statistic/operation" for 127.0.0.1 at 2017-02-21 15:49:38 +0300
Processing by StatisticController#operation as HTML
  Menu Load (0.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_calendar.html.erb (7.5ms)
  Rendered shared/_search_list.html.erb (13.2ms)
  Rendered shared/_check_box_v2.html.erb (2.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_table.html.erb (23.7ms)
  Rendered statistic/operation.html.erb within layouts/application (79.4ms)
   (0.3ms)  BEGIN
  SQL (0.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/statistic/operation"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"statistic\", \"action\"=>\"operation\"}"], ["created_at", "2017-02-21 12:49:38.509691"], ["updated_at", "2017-02-21 12:49:38.509691"]]
   (6.1ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.8ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (24.4ms)
  Rendered shared/_loading.html.erb (3.2ms)
Completed 200 OK in 269ms (Views: 225.8ms | ActiveRecord: 13.7ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-21 15:49:38 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-21 15:49:39 +0300


Started GET "/statistic/get_oper_stat_graph_by_date?order=date%3BDESC&time=1&start_time=21-2-2017+15%3A49%3A39&end_time=21-2-2017+15%3A49%3A39&page=1&offset=50&foid=0&string=&export=0" for 127.0.0.1 at 2017-02-21 15:49:39 +0300
Processing by StatisticController#get_oper_stat_graph_by_date as JSON
  Parameters: {"order"=>"date;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:49:39", "end_time"=>"21-2-2017 15:49:39", "page"=>"1", "offset"=>"50", "foid"=>"0", "string"=>"", "export"=>"0"}
  Menu Load (0.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (4.7ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, AVG(duration) as duration, AVG(user_time) as user_time, AVG(sys_time) as sys_time, COUNT(DISTINCT(login_id)) as uniq_user, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."operation_id" = $1 AND (lower('') LIKE lower(concat('%,',end_time::date,'%,')) = true) GROUP BY end_time::date  [["operation_id", 0]]
  Rendered text template (0.0ms)
Completed 200 OK in 118ms (Views: 1.0ms | ActiveRecord: 7.9ms)


Started GET "/common/operation_sort?string=%25%25" for 127.0.0.1 at 2017-02-21 15:49:56 +0300
Processing by CommonController#operation_sort as JSON
  Parameters: {"string"=>"%%"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  Operation Load (4.2ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as name, "operations"."id", "operation_types"."name" as type_name, "color", "short_name" FROM "operations" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id" WHERE (lower("operations"."name") LIKE lower('%%') = true OR lower(display_name) LIKE lower('%%') = true)
  Rendered text template (0.0ms)
Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 4.8ms)


Started GET "/statistic/get_oper_stat_days?foid=7" for 127.0.0.1 at 2017-02-21 15:49:57 +0300
Processing by StatisticController#get_oper_stat_days as JSON
  Parameters: {"foid"=>"7"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  ActiveDatum Load (259.0ms)  SELECT (end_time::date) as date FROM "active_data" WHERE "active_data"."operation_id" = $1 GROUP BY end_time::date  ORDER BY date ASC  [["operation_id", 7]]
  Rendered text template (0.0ms)
Completed 200 OK in 309ms (Views: 0.9ms | ActiveRecord: 259.9ms)


Started GET "/statistic/get_oper_stat_graph_by_date?order=date%3BDESC&time=1&start_time=21-2-2017+15%3A49%3A39&end_time=21-2-2017+15%3A49%3A39&page=1&offset=50&foid=7&string=%2C2016-11-09%2C2016-11-10%2C2016-11-14%2C2016-11-15%2C2016-11-16%2C2016-11-17%2C&export=0" for 127.0.0.1 at 2017-02-21 15:50:07 +0300
Processing by StatisticController#get_oper_stat_graph_by_date as JSON
  Parameters: {"order"=>"date;DESC", "time"=>"1", "start_time"=>"21-2-2017 15:49:39", "end_time"=>"21-2-2017 15:49:39", "page"=>"1", "offset"=>"50", "foid"=>"7", "string"=>",2016-11-09,2016-11-10,2016-11-14,2016-11-15,2016-11-16,2016-11-17,", "export"=>"0"}
  Menu Load (0.7ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.8ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (131.3ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, AVG(duration) as duration, AVG(user_time) as user_time, AVG(sys_time) as sys_time, COUNT(DISTINCT(login_id)) as uniq_user, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE "active_data"."operation_id" = $1 AND (lower(',2016-11-09,2016-11-10,2016-11-14,2016-11-15,2016-11-16,2016-11-17,') LIKE lower(concat('%,',end_time::date,'%,')) = true) GROUP BY end_time::date  [["operation_id", 7]]
  Rendered text template (0.0ms)
Completed 200 OK in 153ms (Views: 0.4ms | ActiveRecord: 134.3ms)


Started GET "/statistic/day" for 127.0.0.1 at 2017-02-21 15:50:50 +0300
Processing by StatisticController#day as HTML
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_search_list.html.erb (5.5ms)
  Rendered shared/_calendar.html.erb (2.9ms)
  Login Load (0.5ms)  SELECT "logins"."id", "logins"."name" FROM "logins"
  Rendered statistic/day.html.erb within layouts/application (27.8ms)
   (0.3ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/statistic/day"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"statistic\", \"action\"=>\"day\"}"], ["created_at", "2017-02-21 12:50:50.337800"], ["updated_at", "2017-02-21 12:50:50.337800"]]
   (5.9ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.7ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.4ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (22.2ms)
  Rendered shared/_loading.html.erb (2.8ms)
Completed 200 OK in 148ms (Views: 126.5ms | ActiveRecord: 13.1ms)


Started GET "/statistic/get_day_stat_full_activity" for 127.0.0.1 at 2017-02-21 15:50:51 +0300
Processing by StatisticController#get_day_stat_full_activity as JSON
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (1568.7ms)  SELECT (end_time::date) as date FROM "active_data" GROUP BY end_time::date
  Rendered text template (0.0ms)
Completed 200 OK in 1609ms (Views: 0.4ms | ActiveRecord: 1570.0ms)


Started GET "/statistic/get_day_stat_activity_by_login?date=2017-01-09&loginid=0" for 127.0.0.1 at 2017-02-21 15:50:53 +0300
Processing by StatisticController#get_day_stat_activity_by_login as JSON
  Parameters: {"date"=>"2017-01-09", "loginid"=>"0"}
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (153.6ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, COUNT(DISTINCT(login_id)) as users, COUNT(DISTINCT(operation_id)) as opers, coalesce(SUM(duration),0) as duration, coalesce(SUM(sys_time),0) as sys_time, coalesce(SUM(user_time),0) as user_time, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE ( '2017-01-09' = cast(end_time as date)) GROUP BY end_time::date
  Rendered text template (0.0ms)
Completed 200 OK in 168ms (Views: 0.3ms | ActiveRecord: 156.0ms)


Started GET "/statistic/get_day_stat_activity_by_login?date=2016-11-08&loginid=0" for 127.0.0.1 at 2017-02-21 15:50:56 +0300
Processing by StatisticController#get_day_stat_activity_by_login as JSON
  Parameters: {"date"=>"2016-11-08", "loginid"=>"0"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.5ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (148.7ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, COUNT(DISTINCT(login_id)) as users, COUNT(DISTINCT(operation_id)) as opers, coalesce(SUM(duration),0) as duration, coalesce(SUM(sys_time),0) as sys_time, coalesce(SUM(user_time),0) as user_time, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE ( '2016-11-08' = cast(end_time as date)) GROUP BY end_time::date
  Rendered text template (0.0ms)
Completed 200 OK in 168ms (Views: 0.6ms | ActiveRecord: 150.8ms)


Started GET "/assets/delete2.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/star.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/operations.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/warning.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/idle.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/user.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/time.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/perfomance.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/normal.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/assets/error.png" for 127.0.0.1 at 2017-02-21 15:50:56 +0300


Started GET "/statistic/get_day_stat_activity_by_login?date=2016-11-16&loginid=0" for 127.0.0.1 at 2017-02-21 15:50:58 +0300
Processing by StatisticController#get_day_stat_activity_by_login as JSON
  Parameters: {"date"=>"2016-11-16", "loginid"=>"0"}
  Menu Load (0.7ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.6ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (159.0ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, COUNT(DISTINCT(login_id)) as users, COUNT(DISTINCT(operation_id)) as opers, coalesce(SUM(duration),0) as duration, coalesce(SUM(sys_time),0) as sys_time, coalesce(SUM(user_time),0) as user_time, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE ( '2016-11-16' = cast(end_time as date)) GROUP BY end_time::date
  Rendered text template (0.0ms)
Completed 200 OK in 174ms (Views: 0.3ms | ActiveRecord: 162.1ms)


Started GET "/assets/red_arrow.png" for 127.0.0.1 at 2017-02-21 15:50:58 +0300


Started GET "/assets/green_arrow.png" for 127.0.0.1 at 2017-02-21 15:50:58 +0300


Started GET "/statistic/get_day_stat_activity_by_login?date=2016-11-18&loginid=0" for 127.0.0.1 at 2017-02-21 15:50:59 +0300
Processing by StatisticController#get_day_stat_activity_by_login as JSON
  Parameters: {"date"=>"2016-11-18", "loginid"=>"0"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.0ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (158.0ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, COUNT(DISTINCT(login_id)) as users, COUNT(DISTINCT(operation_id)) as opers, coalesce(SUM(duration),0) as duration, coalesce(SUM(sys_time),0) as sys_time, coalesce(SUM(user_time),0) as user_time, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE ( '2016-11-18' = cast(end_time as date)) GROUP BY end_time::date
  Rendered text template (0.0ms)
Completed 200 OK in 171ms (Views: 0.3ms | ActiveRecord: 160.0ms)


Started GET "/statistic/get_day_stat_activity_by_login?date=2016-11-25&loginid=0" for 127.0.0.1 at 2017-02-21 15:51:00 +0300
Processing by StatisticController#get_day_stat_activity_by_login as JSON
  Parameters: {"date"=>"2016-11-25", "loginid"=>"0"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (148.8ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, COUNT(DISTINCT(login_id)) as users, COUNT(DISTINCT(operation_id)) as opers, coalesce(SUM(duration),0) as duration, coalesce(SUM(sys_time),0) as sys_time, coalesce(SUM(user_time),0) as user_time, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE ( '2016-11-25' = cast(end_time as date)) GROUP BY end_time::date
  Rendered text template (0.0ms)
Completed 200 OK in 165ms (Views: 0.3ms | ActiveRecord: 151.7ms)


Started GET "/statistic/get_day_stat_activity_by_login?date=2016-11-28&loginid=0" for 127.0.0.1 at 2017-02-21 15:51:01 +0300
Processing by StatisticController#get_day_stat_activity_by_login as JSON
  Parameters: {"date"=>"2016-11-28", "loginid"=>"0"}
  Menu Load (0.7ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (3.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (3.0ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (229.2ms)  SELECT (end_time::date) as date, coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, COUNT(DISTINCT(login_id)) as users, COUNT(DISTINCT(operation_id)) as opers, coalesce(SUM(duration),0) as duration, coalesce(SUM(sys_time),0) as sys_time, coalesce(SUM(user_time),0) as user_time, COUNT(login_id) as count FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE ( '2016-11-28' = cast(end_time as date)) GROUP BY end_time::date
  Rendered text template (0.0ms)
Completed 200 OK in 251ms (Views: 0.6ms | ActiveRecord: 237.7ms)


Started GET "/statistic/export" for 127.0.0.1 at 2017-02-21 15:59:22 +0300
Processing by StatisticController#export as HTML
  Menu Load (0.8ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "statistic"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 4], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_check_box_v2.html.erb (0.5ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_search_list.html.erb (10.2ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_search_list.html.erb (0.8ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_search_list.html.erb (0.7ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (2.7ms)
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered shared/_check_box_v2.html.erb (0.2ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Rendered shared/_check_box_v2.html.erb (0.1ms)
  Login Load (5.5ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as name FROM "logins"
  Operation Load (2.1ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "operations"."id", "operation_types"."name" as type_name FROM "operations" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id"
  Office Load (1.7ms)  SELECT "offices"."name", "offices"."id" FROM "offices"
  Rendered statistic/export.html.erb within layouts/application (103.4ms)
   (0.2ms)  BEGIN
  SQL (0.5ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/statistic/export"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"statistic\", \"action\"=>\"export\"}"], ["created_at", "2017-02-21 12:59:23.141693"], ["updated_at", "2017-02-21 12:59:23.141693"]]
   (5.6ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.3ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (1.8ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.4ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (33.1ms)
  Rendered shared/_loading.html.erb (2.8ms)
Completed 200 OK in 309ms (Views: 237.2ms | ActiveRecord: 23.1ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-21 15:59:23 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (1.7ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-21 12:59:23.894504"], ["updated_at", "2017-02-21 12:59:23.894504"]]
   (3.0ms)  COMMIT
  User Load (1.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (7.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.8ms)  BEGIN
   (1.7ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 47ms (Views: 1.1ms | ActiveRecord: 17.3ms)


Started GET "/settings/users" for 127.0.0.1 at 2017-02-27 15:16:55 +0300
Processing by UsersController#index as HTML
  Menu Load (28.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (18.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
Redirected to http://localhost:3100/sessions/login?target=%2Fsettings%2Fusers
Filter chain halted as :check_access rendered or redirected
Completed 302 Found in 336ms (ActiveRecord: 47.8ms)


Started GET "/sessions/login?target=%2Fsettings%2Fusers" for 127.0.0.1 at 2017-02-27 15:16:57 +0300
Processing by SessionsController#login as HTML
  Parameters: {"target"=>"/settings/users"}
  LdapParameter Load (29.3ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  CACHE (0.0ms)  SELECT  "ldap_parameters".* FROM "ldap_parameters" WHERE "ldap_parameters"."parameter" = $1  ORDER BY "ldap_parameters"."id" ASC LIMIT 1  [["parameter", "server"]]
  Rendered shared/_check_box_v2.html.erb (12.0ms)
  Rendered sessions/login.html.erb within layouts/sessions (132.1ms)
  Rendered shared/_colorlist.html.erb (0.1ms)
  Rendered shared/_loading.html.erb (10.7ms)
Completed 200 OK in 396ms (Views: 362.9ms | ActiveRecord: 29.3ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-27 15:16:58 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-27 15:16:58 +0300


Started POST "/sessions/login_attempt?target=%2Fsettings%2Fusers" for 127.0.0.1 at 2017-02-27 15:17:05 +0300
Processing by SessionsController#login_attempt as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"pfrXR3DMBBPlhevDiljyXWadEu5DgvJMuXHe36pB705Q8FSFDWUheUwHArBbSKqyv476KoKzU9xHAtxhM0TObg==", "username"=>"sensor", "login_password"=>"[FILTERED]", "ad_auth_check"=>"0", "commit"=>"Login", "target"=>"/settings/users"}
  User Load (13.1ms)  SELECT  "users".* FROM "users" WHERE (ad_user is null) AND "users"."username" = $1 LIMIT 1  [["username", "sensor"]]
   (0.2ms)  BEGIN
  SQL (7.1ms)  UPDATE "users" SET "login_count" = $1, "last_login" = $2, "session_id" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["login_count", 99], ["last_login", "2017-02-27 15:17:05.000000"], ["session_id", "fa90c0b080b8b8bf66505d0dd2d409f2735fbe97"], ["updated_at", "2017-02-27 12:17:05.509918"], ["id", 1]]
   (6.1ms)  COMMIT
Redirected to http://localhost:3100/settings/users
Completed 302 Found in 57ms (ActiveRecord: 26.6ms)


Started GET "/settings/users" for 127.0.0.1 at 2017-02-27 15:17:05 +0300
Processing by UsersController#index as HTML
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "settings"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 5], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."ad_user" IS NULL
  UserGroup Load (31.5ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered users/index.html.erb within layouts/application (171.9ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/settings/users"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"users\", \"action\"=>\"index\"}"], ["created_at", "2017-02-27 12:17:05.792307"], ["updated_at", "2017-02-27 12:17:05.792307"]]
   (6.3ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.3ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.5ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (6.5ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.3ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (34.9ms)
  Rendered shared/_loading.html.erb (1.8ms)
Completed 200 OK in 325ms (Views: 213.0ms | ActiveRecord: 105.5ms)


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-27 15:17:06 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-27 12:17:06.360164"], ["updated_at", "2017-02-27 12:17:06.360164"]]
   (8.6ms)  COMMIT
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.8ms)  BEGIN
   (0.9ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 39ms (Views: 0.9ms | ActiveRecord: 11.8ms)


Started GET "/logins/perfomance" for 127.0.0.1 at 2017-02-27 16:57:02 +0300
Processing by LoginsController#perfomance as HTML
  Menu Load (0.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.5ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_search_list.html.erb (17.9ms)
  Rendered shared/_table.html.erb (150.1ms)
  Rendered logins/perfomance.html.erb within layouts/application (293.8ms)
   (0.4ms)  BEGIN
  SQL (0.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/logins/perfomance"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"controller\"=>\"logins\", \"action\"=>\"perfomance\"}"], ["created_at", "2017-02-27 13:57:02.840477"], ["updated_at", "2017-02-27 13:57:02.840477"]]
   (1.2ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (1.0ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.6ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (3.9ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.5ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.5ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (103.1ms)
  Rendered shared/_loading.html.erb (7.8ms)
Completed 200 OK in 726ms (Views: 674.0ms | ActiveRecord: 13.0ms)


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-27 16:57:03 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-27 16:57:03 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-27 16:57:03 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (48.6ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-27 13:57:03.823142"], ["updated_at", "2017-02-27 13:57:03.823142"]]
   (20.5ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (11.8ms)  BEGIN
   (0.4ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 132ms (Views: 1.1ms | ActiveRecord: 82.5ms)


Started GET "/logins/get_user_perfomance?order=count%3BDESC&time=1&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&page=1&offset=50&loginid=0&export=0" for 127.0.0.1 at 2017-02-27 16:57:03 +0300
Processing by LoginsController#get_user_perfomance as JSON
  Parameters: {"order"=>"count;DESC", "time"=>"1", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "page"=>"1", "offset"=>"50", "loginid"=>"0", "export"=>"0"}
  Menu Load (20.9ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (6.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.4ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (6.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (2658.3ms)  SELECT coalesce(SUM(CASE WHEN (user_time/user_time_avg) <= 1 THEN 1 ELSE 0 END),0) as green, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 1 ELSE 0 END),0) as yellow, coalesce(SUM(CASE WHEN (user_time/user_time_avg) > kpi THEN 1 ELSE 0 END),0) as red, SUM(duration) as duration_sum, SUM(user_time) as user_time_sum, SUM(sys_time) as sys_time_sum, COUNT("active_data"."id") as count, "active_data"."login_id" FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) GROUP BY "active_data"."login_id"
  Login Load (6.8ms)  SELECT (CASE WHEN full_name IS NULL  OR full_name = '' THEN "logins"."name" ELSE full_name END) as login_name, "offices"."name" as office_name, "logins"."office_id", "logins"."id" FROM "logins" INNER JOIN "offices" ON "offices"."id" = "logins"."office_id"
  Rendered text template (0.1ms)
Completed 200 OK in 2849ms (Views: 3.2ms | ActiveRecord: 2699.9ms)


Started GET "/logins/map?login_id=1" for 127.0.0.1 at 2017-02-27 16:57:29 +0300
Processing by LoginsController#map as HTML
  Parameters: {"login_id"=>"1"}
  Menu Load (0.3ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_search_list.html.erb (4.0ms)
  Rendered shared/_table.html.erb (34.1ms)
  Rendered logins/map.html.erb within layouts/application (51.0ms)
   (0.2ms)  BEGIN
  SQL (0.4ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/logins/map"], ["ip", "127.0.0.1"], ["action_type", "PAGE"], ["params", "{\"login_id\"=>\"1\", \"controller\"=>\"logins\", \"action\"=>\"map\"}"], ["created_at", "2017-02-27 13:57:29.958077"], ["updated_at", "2017-02-27 13:57:29.958077"]]
   (5.4ms)  COMMIT
  Rendered shared/_colorlist.html.erb (0.1ms)
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Menu Load (0.6ms)  SELECT "menus".* FROM "menus" INNER JOIN "user_accesses" ON "user_accesses"."menu_id" = "menus"."id" WHERE ("user_accesses"."user_group_id" = 1)  ORDER BY "menus"."id" ASC
  SubMenu Load (0.4ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" IN (1, 2, 3, 4, 5)
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 1]]
  SubMenu Load (0.3ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 2]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 3]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 4]]
  SubMenu Load (0.2ms)  SELECT "sub_menus".* FROM "sub_menus" WHERE "sub_menus"."menu_id" = $1  [["menu_id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.2ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  OperationServer Load (0.3ms)  SELECT "operation_servers".* FROM "operation_servers"
  OperationSource Load (0.3ms)  SELECT "operation_sources".* FROM "operation_sources"
  CustomFilter Load (0.4ms)  SELECT "custom_filters".* FROM "custom_filters"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  Rendered shared/_menu.html.erb (39.1ms)
  Rendered shared/_loading.html.erb (2.3ms)
Completed 200 OK in 250ms (Views: 182.4ms | ActiveRecord: 10.8ms)


Started GET "/assets/application.self-a399b9b32b99516fb2915ae88900b10d9f8112cc7fe99cceb9cb03eb8626ba47.css?body=1" for 127.0.0.1 at 2017-02-27 16:57:30 +0300


Started GET "/assets/operation.png" for 127.0.0.1 at 2017-02-27 16:57:30 +0300


Started GET "/assets/ClearSans-Regular.ttf" for 127.0.0.1 at 2017-02-27 16:57:30 +0300


Started GET "/assets/ClearSans-Bold.ttf" for 127.0.0.1 at 2017-02-27 16:57:30 +0300


Started POST "/sessions/update_user_dates" for 127.0.0.1 at 2017-02-27 16:57:30 +0300
Processing by SessionsController#update_user_dates as */*
  Parameters: {"from_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "to_date"=>"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)", "user_id"=>"1"}
   (0.3ms)  BEGIN
  SQL (5.9ms)  INSERT INTO "user_logs" ("user_id", "action", "ip", "action_type", "params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["user_id", 1], ["action", "/sessions/update_user_dates"], ["ip", "127.0.0.1"], ["action_type", "POST"], ["params", "{\"from_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"to_date\"=>\"Mon Nov 28 2016 00:00:00 GMT+0300 (MSK)\", \"user_id\"=>\"1\", \"controller\"=>\"sessions\", \"action\"=>\"update_user_dates\"}"], ["created_at", "2017-02-27 13:57:30.706324"], ["updated_at", "2017-02-27 13:57:30.706324"]]
   (6.5ms)  COMMIT
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  User Load (2.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (1.1ms)  BEGIN
   (0.2ms)  COMMIT
  Rendered text template (0.0ms)
Completed 200 OK in 71ms (Views: 4.4ms | ActiveRecord: 16.5ms)


Started GET "/common/login_sort?string=%25%25" for 127.0.0.1 at 2017-02-27 16:57:30 +0300
Processing by CommonController#login_sort as JSON
  Parameters: {"string"=>"%%"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (0.3ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  Login Load (0.7ms)  SELECT "logins"."id", (CASE WHEN full_name IS NULL  OR full_name = '' THEN name ELSE full_name END) as name FROM "logins" WHERE (lower(name) LIKE lower('%%') = true OR lower(full_name) LIKE lower('%%') = true)
  Rendered text template (0.0ms)
Completed 200 OK in 25ms (Views: 2.2ms | ActiveRecord: 1.4ms)


Started GET "/logins/get_user_map?order=end_time%3BASC&time=1&start_time=28-11-2016+0%3A0%3A0&end_time=28-11-2016+0%3A0%3A0&page=1&offset=50&Login_ID=1&export=0" for 127.0.0.1 at 2017-02-27 16:57:30 +0300
Processing by LoginsController#get_user_map as JSON
  Parameters: {"order"=>"end_time;ASC", "time"=>"1", "start_time"=>"28-11-2016 0:0:0", "end_time"=>"28-11-2016 0:0:0", "page"=>"1", "offset"=>"50", "Login_ID"=>"1", "export"=>"0"}
  Menu Load (0.4ms)  SELECT  "menus".* FROM "menus" WHERE "menus"."name_eng" = $1  ORDER BY "menus"."id" ASC LIMIT 1  [["name_eng", "logins"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  SELECT COUNT(*) FROM "user_accesses" WHERE "user_accesses"."menu_id" = $1 AND "user_accesses"."user_group_id" = $2  [["menu_id", 1], ["user_group_id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
  GlobalFilter Load (1.4ms)  SELECT  "global_filters".* FROM "global_filters" WHERE "global_filters"."user_id" = $1  ORDER BY "global_filters"."id" ASC LIMIT 1  [["user_id", 1]]
  ActiveDatum Load (1285.4ms)  SELECT (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "active_data"."start_time", "active_data"."end_time", user_time/user_time_avg as status, "kpi", "active_data"."duration", "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "time_avg", "user_time_avg", "sys_time_avg", "active_data"."id", "color", "active_data"."module", "active_data"."node", "short_name", "active_data"."operation_id" FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" INNER JOIN "operation_sources" ON "operation_sources"."id" = "operations"."operation_source_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 1]]
  ActiveDatum Load (108.6ms)  SELECT SUM(sys_time)/SUM(duration) as percents FROM "active_data" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  [["login_id", 1]]
  ActiveDatum Load (97.3ms)  SELECT "active_data"."start_time", "active_data"."end_time", (CASE WHEN display_name IS NULL OR display_name = '' THEN "operations"."name" ELSE display_name END) as oper_name, "operation_types"."name" as type_name, "active_data"."user_time", "active_data"."sys_time", "active_data"."id", "active_data"."duration", "active_data"."operation_id", (CASE 	
            WHEN (user_time/user_time_avg) <= 1 THEN 1 
			WHEN (user_time/user_time_avg) > 1 and (user_time/user_time_avg) <= kpi THEN 2
			ELSE 3
		END) as status FROM "active_data" INNER JOIN "operations" ON "operations"."id" = "active_data"."operation_id" INNER JOIN "operation_types" ON "operation_types"."id" = "operations"."operation_type_id" WHERE (end_time::date >= '28-11-2016 0:0:0'::timestamp and end_time::date <= '28-11-2016 0:0:0'::timestamp) AND "active_data"."login_id" = $1  ORDER BY end_time ASC  [["login_id", 1]]
  Rendered text template (0.0ms)
Completed 200 OK in 2525ms (Views: 0.5ms | ActiveRecord: 1493.8ms)


Started GET "/assets/normal.png" for 127.0.0.1 at 2017-02-27 16:57:33 +0300


Started GET "/assets/warning.png" for 127.0.0.1 at 2017-02-27 16:57:33 +0300


Started GET "/assets/error.png" for 127.0.0.1 at 2017-02-27 16:57:33 +0300
