fix async bug in StaticServer when waiting for log message