Flush logfile after each message when log level is debug
Merge branch 'flush-logfile-when-debug' into fordevelop
return [] if no chunks.select
Merge branch 'flush-logfile-when-debug' into develop
Merge commit '3d8874f' into develop