Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
timothe
duniter
Commits
c58e9136
Commit
c58e9136
authored
Jul 21, 2018
by
Cédric Moreau
Browse files
[enh] logs: chunk completion should be `info` level
parent
6e7d86ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/crawler/lib/sync/ChunkGetter.ts
View file @
c58e9136
...
...
@@ -165,7 +165,7 @@ export class ChunkGetter {
;(
handler
as
any
).
state
=
'
WAITING
'
i
++
}
else
{
logger
.
warn
(
"
Chunk #%s read from filesystem.
"
,
i
)
logger
.
info
(
"
Chunk #%s read from filesystem.
"
,
i
)
let
doWrite
=
handler
.
downloader
!==
this
.
fsDownloader
||
!
(
await
this
.
writeDAL
.
confDAL
.
coreFS
.
exists
(
fileName
))
if
(
doWrite
)
{
...
...
@@ -181,7 +181,7 @@ export class ChunkGetter {
if
(
chainsWell
)
{
// Chunk is COMPLETE
logger
.
warn
(
"
Chunk #%s is COMPLETE
"
,
i
)
logger
.
info
(
"
Chunk #%s is COMPLETE
"
,
i
)
;(
handler
as
any
).
state
=
'
COMPLETED
'
if
(
!
isTopChunk
)
{
(
handler
as
any
).
chunk
=
undefined
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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