...G...... [ZBX-7098] simplified if-condition in add_logfile()