Ignore:
Timestamp:
Aug 13, 2013, 4:24:43 PM (12 years ago)
Author:
Herwig Bauernfeind
Message:

EVFSGUI 2.5: Fix rpc bug, filter more debug messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/shared/smbtree.vrs

    r785 r786  
    8383                comment = strip(comment)
    8484                if VRGet("CN_smbtree","View") = "IconTree" then parent = smbtree.!workgroup; else parent = ""
    85                 /* We make any machine as sleeping initially */
     85                /* We create any machine as sleeping initially */
    8686                smbtree.!machine = _AddSleepingMachine(machine,comment,parent)
    8787
     
    117117            end
    118118            when smbtreeline.sl = "" then nop /* skip empty lines */
    119             otherwise do /* possibly a new workgroup */
     119            otherwise do /* possible new workgroup */
    120120                say '  Possible workgroup: "'smbtreeline.sl'"'
    121                 /* check for eventual error messages */
    122                 if pos("RECEIVING",translate(smbtreeline.sl)) > 0 | pos("NT_STATUS",translate(smbtreeline.sl)) > 0 then do
     121                ThrowMsg = 0
     122                /* Do some checks to be sure */
     123                select
     124                    when pos("RECEIVING",translate(smbtreeline.sl)) > 0 then ThrowMsg = 1
     125                    when pos("NT_STATUS",translate(smbtreeline.sl)) > 0 then ThrowMsg = 1
     126                    when pos(" ", smbtreeline.sl) > 0 then ThrowMsg = 1
     127                    when pos("=", smbtreeline.sl) > 0 then ThrowMsg = 1
     128                    when pos(":", smbtreeline.sl) > 0 then ThrowMsg = 1
     129                    when pos("%", smbtreeline.sl) > 0 then ThrowMsg = 1
     130                    otherwise do /* it is really a new workgroup */
     131                        if VRGet("CN_smbtree","View") = "IconTree" then do
     132                            say "Checks passed, "smbtreeline.sl" is a workgroup!"
     133                            smbtree.!workgroup = _AddWorkGroup(smbtreeline.sl)
     134                            CurWG = smbtreeline.sl
     135                        end
     136                    end
     137                end
     138                if ThrowMsg = 1 then do
     139                    ThrowMsg = 0
    123140                    Msg.Type = "W"
    124141                    Msg.Text = smbtreeline.sl
    125142                    call _ShowMsg
    126                 end
    127                 else do /* it is really a new workgroup */
    128                     if VRGet("CN_smbtree","View") = "IconTree" then do
    129                         smbtree.!workgroup = _AddWorkGroup(smbtreeline.sl)
    130                     end
    131                     CurWG = smbtreeline.sl
    132143                end
    133144            end
     
    265276                line = linein(smbmachine.I)
    266277            end
     278            /* Filter possible debug messages */
     279            do while(pos("TDB(",translate(line)) > 0) | (pos("%",line) > 0) | (pos("=",line) > 0)
     280                say '  Skip "'line'"'
     281                line = linein(smbmachine.I)
     282            end
    267283            say '  Message "'line'"'
     284           
    268285            ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'UserData', "SERVER|"||strip(line))
    269286
Note: See TracChangeset for help on using the changeset viewer.