Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to get rid of display of warning messages

 
sharad jain
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All

I am getting a warning message in my script which i do not want to be printed on the screen when my script is running.. please help.. Below is the snapshot


wsadmin>req_ser1=AdminControl.completeObjectName("name="+req_server1+",*")[0]
WASX7026W: String "name=dev_afx_01,*" corresponds to 3 different MBeans; returning first one.
wsadmin>
 
sharad jain
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys, can anyone please hep me in this. How can we stop display of these warnings while script is running.
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this WLST? Perhaps you can figure out what logging API it is using and configure it to ignore the warning or divert the warning to a file.
 
sharad jain
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is websphere wsadmin tool. Can you please let me know how to change that logging properties..
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't done it myself. A quick googling lead me to this promising article.
 
sharad jain
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That seems to be WLST tool for weblogic here I am working on WebSphere and using wsadmin.. Need a help

--Sharad
 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using try and except

try:

////////////////////

except (ValueError, SyntaxError):
pass
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic