2

我有一个 Rails 服务器,这是来自服务器日志的片段


Processing CustomController#my_action (for 10.0.2.2 at 2018-05-11 08:38:53) [GET]
Parameters: {"id"=>"12345", "action"=>"my_action", "controller"=>"custom"}
...
all the other stuff that gets logged
...
Completed in 251ms (View: 181, DB: 60) | 200 OK [https://myserver.com/custom/my_action/12345]
...
...

Processing CustomController#my_action (for 10.0.2.2 at 2018-05-11 08:38:55) [GET]
  Parameters: {"id"=>"12345", "r"=>"876646", "h"=>"16", "m"=>"16", "s"=>"51", "send_image"=>"1", "gears"=>"0", "cookie"=>"1", "gt_ms"=>"1174", "uid"=>"dummyemail@myserver.com", "realp"=>"0", "java"=>"0", "qt"=>"0", "urlref"=>"https://myserver.com/reporting/report_builder/", "controller"=>"custom", "action_name"=>"", "idsite"=>"", "rec"=>"1", "_idts"=>"1525949211", "_idn"=>"1", "_refts"=>"0", "res"=>"1280x720", "_id"=>"f2fe432581e2e376", "wma"=>"0", "fla"=>"0", "_idvc"=>"1", "_viewts"=>"1525949211", "dir"=>"0", "action"=>"my_action", "url"=>"https://myserver.com/custom/my_action/12345", "pdf"=>"1", "ag"=>"0"}
...
all other stuff
Completed in 227ms (View: 177, DB: 39) | 200 OK [https://myserver.com/custom/my_action/12345?action_name=&idsite=&rec=1&r=705226&h=16&m=16&s=52&url=https%3A%2F%2Fmyserver.com%2Fcustom%2Fmy_action%2F2408&urlref=https%3A%2F%2Fmyserver.com%2Freporting%2Freport_builder%2F&uid=ctl-support%40myserver.com&_id=f2fe432581e2e376&_idts=1525949212&_idvc=0&_idn=1&_refts=0&_viewts=&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=0&java=0&gears=0&ag=0&cookie=1&res=1280x720>_ms=757]

上述日志的问题是,我看到针对单个操作进行了重复的服务器调用。

我仅在加载 piwik 跟踪脚本时才看到这一点。但是,如果我在浏览器中监视网络选项卡,我只能看到对应用程序服务器 (myserver.com) 的一次调用和对 piwik 服务器 (mypiwikserver.com) 的一次调用。

这可能是什么原因以及如何解决这个问题?

4

0 回答 0