Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon-fork
Commits
ff99bd0e
Commit
ff99bd0e
authored
2 years ago
by
mashirozx
Browse files
Options
Download
Email Patches
Plain Diff
logger
parent
55b650d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
translation/index.js
+1
-2
translation/index.js
with
1 addition
and
2 deletions
+1
-2
translation/index.js
+
1
-
2
View file @
ff99bd0e
...
...
@@ -148,7 +148,6 @@ app.get('/health', (_request, response) => {
});
app
.
post
(
'
*
'
,
async
(
request
,
response
)
=>
{
// console.log(JSON.stringify([request.headers, request.body], null, 2));
const
body
=
request
.
body
;
const
{
content
,
to
,
status
,
edit
}
=
body
;
...
...
@@ -253,7 +252,7 @@ app.post('*', async (request, response) => {
text
:
fragment
.
firstChild
.
innerHTML
,
from
,
to
,
});
}
catch
(
err
)
{
logger
.
error
=
err
;
logger
.
error
=
err
.
toString
()
;
logger
.
content
=
content
;
log
.
error
(
'
[error]
'
,
JSON
.
stringify
(
logger
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets