Moved muscula error logging to <head>