mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-02-09 09:23:56 +00:00
More logging, try to fix the 502 gateway error.
This commit is contained in:
parent
640315cbba
commit
99e52ceb75
3 changed files with 6 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
<meta name="description" content="KamoKan, text storage site." />
|
||||
<meta name="keywords" content="text storage, pastebin, source code snippets, code review" />
|
||||
<meta name="author" content="Elena" />
|
||||
<link rel="stylesheet" href="kamokan.css" />
|
||||
<link rel="stylesheet" href="{{host_path}}/kamokan.css" />
|
||||
<link rel="icon" href="icon" />
|
||||
|
||||
</head>
|
||||
|
|
|
@ -265,6 +265,10 @@ namespace tawashi {
|
|||
HttpHeader Response::make_redirect (HttpStatusCodes parCode, const std::string& parLocation) {
|
||||
std::ostringstream oss;
|
||||
oss << base_uri() << '/' << parLocation;
|
||||
|
||||
auto statuslog = spdlog::get("statuslog");
|
||||
assert(statuslog);
|
||||
statuslog->info("Redirecting to page \"{}\"", oss.str());
|
||||
return HttpHeader(parCode, oss.str());
|
||||
}
|
||||
|
||||
|
|
|
@ -132,9 +132,9 @@ namespace tawashi {
|
|||
if (token) {
|
||||
std::ostringstream oss;
|
||||
oss << *token;
|
||||
statuslog->info("Pastie token=\"{}\" redirect=\"{}\"", *token, oss.str());
|
||||
if (not lang.empty())
|
||||
oss << '?' << lang;
|
||||
statuslog->info("Pastie token=\"{}\" redirect=\"{}\"", *token, oss.str());
|
||||
|
||||
return this->make_success_response(oss.str());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue