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="description" content="KamoKan, text storage site." />
|
||||||
<meta name="keywords" content="text storage, pastebin, source code snippets, code review" />
|
<meta name="keywords" content="text storage, pastebin, source code snippets, code review" />
|
||||||
<meta name="author" content="Elena" />
|
<meta name="author" content="Elena" />
|
||||||
<link rel="stylesheet" href="kamokan.css" />
|
<link rel="stylesheet" href="{{host_path}}/kamokan.css" />
|
||||||
<link rel="icon" href="icon" />
|
<link rel="icon" href="icon" />
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -265,6 +265,10 @@ namespace tawashi {
|
||||||
HttpHeader Response::make_redirect (HttpStatusCodes parCode, const std::string& parLocation) {
|
HttpHeader Response::make_redirect (HttpStatusCodes parCode, const std::string& parLocation) {
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << base_uri() << '/' << parLocation;
|
oss << base_uri() << '/' << parLocation;
|
||||||
|
|
||||||
|
auto statuslog = spdlog::get("statuslog");
|
||||||
|
assert(statuslog);
|
||||||
|
statuslog->info("Redirecting to page \"{}\"", oss.str());
|
||||||
return HttpHeader(parCode, oss.str());
|
return HttpHeader(parCode, oss.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,9 +132,9 @@ namespace tawashi {
|
||||||
if (token) {
|
if (token) {
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << *token;
|
oss << *token;
|
||||||
statuslog->info("Pastie token=\"{}\" redirect=\"{}\"", *token, oss.str());
|
|
||||||
if (not lang.empty())
|
if (not lang.empty())
|
||||||
oss << '?' << lang;
|
oss << '?' << lang;
|
||||||
|
statuslog->info("Pastie token=\"{}\" redirect=\"{}\"", *token, oss.str());
|
||||||
|
|
||||||
return this->make_success_response(oss.str());
|
return this->make_success_response(oss.str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue