Thêm app/libs/gatewayLogger.js (bunyan, ghi file log/gateway.log, xoay vòng theo ngày, giữ 14 ngày) phục vụ đối soát khi có tranh chấp giao dịch. Ghi toàn bộ request/response (kể cả lỗi) cho: sobanle.login, getProducts (response tóm tắt count/pagination, không log hết catalog vì không phải dữ liệu của một giao dịch cụ thể), createSale, changeSaleStatus, và epay.createTransaction/epayReturn/epayIPN. Mật khẩu/token luôn được che (maskSecret) trước khi ghi log. Log request của getProducts/createSale/changeSaleStatus được dời vào đúng bên trong closure gửi request thật (sau khi có token), thay vì đầu hàm, để thứ tự các dòng log phản ánh đúng thứ tự gọi HTTP thực tế (trước đó dòng log getProducts request bị ghi trước cả login request dù về mặt network login luôn xảy ra trước). Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KPzWwuTEeX2vXGXvyGn4q
| Name |
Last commit
|
Last update |
|---|---|---|
| app | Loading commit data... | |
| config | Loading commit data... | |
| docs | Loading commit data... | |
| log | Loading commit data... | |
| public | Loading commit data... | |
| .bowerrc | Loading commit data... | |
| .csslintrc | Loading commit data... | |
| .dockerignore | Loading commit data... | |
| .editorconfig | Loading commit data... | |
| .env.example | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .jshintrc | Loading commit data... | |
| CLAUDE.md | Loading commit data... | |
| Dockerfile | Loading commit data... | |
| LICENSE.md | Loading commit data... | |
| MGP_Merchant_Interface_V1.4.7VN.md | Loading commit data... | |
| README.md | Loading commit data... | |
| bower.json | Loading commit data... | |
| deploy.md | Loading commit data... | |
| docker-compose.yml | Loading commit data... | |
| gruntfile.js | Loading commit data... | |
| karma.conf.js | Loading commit data... | |
| package-lock.json | Loading commit data... | |
| package.json | Loading commit data... | |
| server.js | Loading commit data... |