diff options
author | Joey Hess <joey@kitenet.net> | 2013-01-15 16:48:51 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-01-15 16:48:51 -0400 |
commit | 2e4550ceac95c3ed4ded4bae8b923c51e4aac4ef (patch) | |
tree | b618aafc2c865ced5760a51655c5abff0d785f9b | |
parent | 3fb5817c92a21b0b133ba6c1a5fb11d9f6ff1c6f (diff) |
blog for the day
-rw-r--r-- | doc/design/assistant/blog/day_171__logs.mdwn | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/design/assistant/blog/day_171__logs.mdwn b/doc/design/assistant/blog/day_171__logs.mdwn new file mode 100644 index 000000000..7c7a4c821 --- /dev/null +++ b/doc/design/assistant/blog/day_171__logs.mdwn @@ -0,0 +1,23 @@ +I've noticed people have some problems getting me logs when there'a a bug, +so I worked on improving the logging of the assistant. + +While the assistant logged to `.git/annex/daemon.log` when started as a +daemon, when the webapp ran it didn't log there. It's somewhat tricky to +make the webapp redirect messages to the log, because it may start a web +browser that wants to write to the console. Took some file descriptor +juggling, but I made this work. Now the log is even used when the assistant +is started for the first time in a newly created repository. So, we have +total log coverage. + +Next, I made a simple page in the webapp to display the accumulated logs. +It does not currently refresh as new things are logged. But it's easier +for me to tell users to click on `Current Repository -> View log` than +ask for them to look for the daemon.log file. + +Finally, I made all the webapp's alerts also be written to the log. + +--- + +Also did the requisite bug fixes. + +[[!img /assistant/logs.png alt="screenshot of logs page"]] |