no URL to see the runlog

Issue #238 resolved
dd1 created an issue

When updating the dragon experiment from midas-2017 to midas-2020-03, we noticed that our web link to the runlog stopped working. Indeed, mhttpd does not seem to have a URL to open midas.log or runlog.log - the best I can do is open “/?cmd=Messages” but I cannot select what this page will display (midas.log or the runlog). Actually the “messages” seems to have acquired a memory and it now shows the thing I looked at last. I think we need to add a sub-url to the “messages” page to select which log it will show. K.O.

Comments (4)

  1. Stefan Ritt

    For me this still works. Just put a runlog.log in your experiment directory, and mhttpd will find it:

    This is done im midas.cxx:cm_msg_facilities() where it searches for all *.log files and shows them as “message facilities”.

  2. dd1 reporter

    Yes, that still works. What stopped working is the link (or an alias) in the left-hand-side menu. And now I realize that we do not have a bookmarkable url for log files, we can bookmark the “messages” page, but it will display a random log file (midas.log or runlog or chat, depending on what somebody else looked at last).

    I think we should do this: on the “messages” page, when they press the “midas” or “chat” button, we update the URL bar (like you already do in the history pages) with a suburl, i.e. “cmd=messages&display=chat”.

    Then we can bookmark (or alias or whatever) individual log files again.

    K.O.

  3. Stefan Ritt

    I put that in. Give it a try. The URL parameter is called “facility” not “display”, since this is what’s used internally in the C API.

  4. Log in to comment