When error checking logs, I only consider ERROR or WARNING on the beginning of the line, e.g.
if index(_infile_, 'ERROR') = 1 ....
Also we have a list of allowed error messages.
If not this, it seems you can hide what IMPORT generates with NOSOURCE option, but it's not very nice.
options nosource;
proc import file='E:\test.csv' out=test replace;
run;
options source;