[SOLVED] BUG (??) /log print where topics=info && message=$message

During the executing on the code below, i get all “downloaded” files which are catched at the logger.

{
  :local message "fetch: file \"flash/home/test.txt\" downloaded";  
  /log print  where topics=info && message=$message 
}

Output:

  • 17:19:55 info fetch: file “flash/test/tf_1.txt” downloaded
    17:20:02 info fetch: file “flash/test/tf_2.txt” downloaded
    17:20:06 info fetch: file “flash/test2/ico.png” downloaded

But the by path flash/home/test.txt has not been downloaded at all.

Ok i see.
The variable should not be named = message
here:

/log print  where topics=info && message=$message

If we do like that:

/log print  where topics=info && message=$ms

then all works like it should.

That is correct. You should never use variable names in RouterOS that are equal with some command or parameter name.