Improve chrome refesh after a crash#367
Conversation
|
Hey,
The thing is I never really found a way to test all this and it would help if you had a spesific page or something that this solves the issue for. Otherwise I am pulling without any proof that it helps anyone. |
Did not work in my case whit -f. It makes sense since chrome is deleting the logs when it starts. If you use -f then it will stop watching the file for changes after the file is deleted. When I switch to -F it works.
That may also work. (not tested this) I add delay because when I navigate to chrome://crash to simulate a crash then it does not refesh unless I add a delay. |
|
Ok, |
|
Another way of doing it: |
|
Hey, did that branch change? I see no relevant code anymore |
Hey. I didn't change anything. I just sent you how I ended up writing the log file. I have changed it after this to log to /var/syslog/chrome and have log rotation on this file. |
Improve chrome refesh after a crash
Since chrome_debug.log is re-created by chrome when it start. tail should use the -F flag instead of the -f flag.
https://unix.stackexchange.com/questions/410471/tail-f-but-when-the-file-is-deleted-and-re-created-not-appended
I suggest also to add a 1 second delay before refeshing chrome after a crash.