On request of FErki, change 'warn' to logger calls.