質問編集履歴

2

ログ全文を載せました

2021/09/07 00:17

投稿

tamu_daiki
tamu_daiki

スコア10

test CHANGED
File without changes
test CHANGED
@@ -106,6 +106,66 @@
106
106
 
107
107
  ```
108
108
 
109
+
110
+
111
+ ログ(コメント投稿から)
112
+
113
+ ```ここに言語を入力
114
+
115
+ I, [2021-09-06T22:54:39.944495 #3215] INFO -- : Started GET "/posts/11" for 118.103.63.149 at 2021-09-06 22:54:39 +0000
116
+
117
+ I, [2021-09-06T22:54:39.945135 #3215] INFO -- : Cannot render console from 118.103.63.149! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
118
+
119
+ I, [2021-09-06T22:54:39.946224 #3215] INFO -- : Processing by PostsController#show as HTML
120
+
121
+ I, [2021-09-06T22:54:39.946367 #3215] INFO -- : Parameters: {"id"=>"11"}
122
+
123
+ D, [2021-09-06T22:54:39.947606 #3215] DEBUG -- : Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 11 LIMIT 1
124
+
125
+ D, [2021-09-06T22:54:39.947835 #3215] DEBUG -- : ↳ app/controllers/posts_controller.rb:11
126
+
127
+ I, [2021-09-06T22:54:39.949465 #3215] INFO -- : Rendering posts/show.html.erb within layouts/application
128
+
129
+ D, [2021-09-06T22:54:39.951562 #3215] DEBUG -- : User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1
130
+
131
+ D, [2021-09-06T22:54:39.952374 #3215] DEBUG -- : ↳ app/views/posts/show.html.erb:2
132
+
133
+ D, [2021-09-06T22:54:39.953760 #3215] DEBUG -- : Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`post_id` = 11
134
+
135
+ D, [2021-09-06T22:54:39.954545 #3215] DEBUG -- : ↳ app/views/posts/show.html.erb:6
136
+
137
+ I, [2021-09-06T22:54:39.955987 #3215] INFO -- : Rendered posts/show.html.erb within layouts/application (5.6ms)
138
+
139
+ I, [2021-09-06T22:54:39.961509 #3215] INFO -- : Completed 200 OK in 15ms (Views: 12.5ms | ActiveRecord: 0.8ms)
140
+
141
+
142
+
143
+
144
+
145
+ I, [2021-09-06T22:55:03.655420 #3215] INFO -- : Started POST "/posts/11/comments" for 118.103.63.149 at 2021-09-06 22:55:03 +0000
146
+
147
+ I, [2021-09-06T22:55:03.655996 #3215] INFO -- : Cannot render console from 118.103.63.149! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
148
+
149
+ I, [2021-09-06T22:55:03.657532 #3215] INFO -- : Processing by CommentsController#create as HTML
150
+
151
+ I, [2021-09-06T22:55:03.657692 #3215] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"7vdISLkJESCXfdUUXmfhhBJmLwpU0pH7yrvWChoJpEKaoTCzKBLV413ohLFVsNvS4RqwVMfNDvE8zOP2Si85+w==", "comment"=>{"content"=>"いいところ"}, "commit"=>"コメントする", "post_id"=>"11"}
152
+
153
+ D, [2021-09-06T22:55:03.658725 #3215] DEBUG -- : #<ActiveModel::Errors:0x00007f2c98045d50 @base=#<Comment id: nil, content: nil, user_id: nil, post_id: nil, created_at: nil, updated_at: nil>, @messages={}, @details={}>
154
+
155
+ D, [2021-09-06T22:55:03.659694 #3215] DEBUG -- : (0.1ms) BEGIN
156
+
157
+ D, [2021-09-06T22:55:03.660342 #3215] DEBUG -- : ↳ app/controllers/comments_controller.rb:5
158
+
159
+ D, [2021-09-06T22:55:03.662682 #3215] DEBUG -- : (0.1ms) ROLLBACK
160
+
161
+ D, [2021-09-06T22:55:03.663351 #3215] DEBUG -- : ↳ app/controllers/comments_controller.rb:5
162
+
163
+ I, [2021-09-06T22:55:03.664243 #3215] INFO -- : Redirected to https://ac7c34ad0f0d4d6c88e67a1fd746ee4a.vfs.cloud9.ap-northeast-1.amazonaws.com/posts/11
164
+
165
+ I, [2021-09-06T22:55:03.664980 #3215] INFO -- : Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
166
+
167
+ ```
168
+
109
169
  見てくださりありがとうございます。
110
170
 
111
171
  私一人の力では全く解決できませんでした。どうか少しでも力を貸してくださると幸いですよろしくお願いします。

1

リンクを追記しました

2021/09/07 00:17

投稿

tamu_daiki
tamu_daiki

スコア10

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  以下loggerを使ったログになります
8
8
 
9
- https://gyazo.com/a0f1c8af222d84a8490d3caa78a069ef
9
+ [リンク内容](https://gyazo.com/a0f1c8af222d84a8490d3caa78a069ef)
10
10
 
11
11
 
12
12