Explorar el Código

lib-0.js logs last request it executed

Herbert Vojčík hace 13 años
padre
commit
2b8b748c78
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      lib-0.js

+ 6 - 1
lib-0.js

@@ -27,4 +27,9 @@ import("lib-app/../../config");
 import("lib-app/patches");
 dispatchShouldSearchHere();
 mvp();
-response.setStatusCode(404);
+storage._last0Request = request.toString();
+response.setStatusCode(404);
+
+function get_last0request() {
+  printp(storage._last0Request);
+}