我将我的应用程序移动到另一台服务器,我的(cap)capistrano exec很好,但输出与以前不同。
之前 - Capistrano版本:3.4.0(耙子版本:10.4.2)
static Bag bag = new Bag();
static String helmet = "";
static String chestplate = "";
static String leggings = "";
static String boots = "";
static boolean isBagFull = ((!Bag.itemSlot1.equals("Empty"))||(!Bag.itemSlot2.equals("Empty"))||(!Bag.itemSlot3.equals("Empty"))||(!Bag.itemSlot4.equals("Empty"))||(!Bag.itemSlot5.equals("Empty")));
public void removeArmour(String s, int b){
if (b==1&&!helmet.equals("")) {
if (!isBagFull){//ITS USED HERE GUYS!!!!!!!!!!!!!!!!!! HELP!!!!!
bag.newItem(s);
helmet = "";
}else{
JOptionPane.showMessageDialog(null, "You do not have any room to remove the "+s);
}
}else if (b==2&&!chestplate.equals("")){
if (!isBagFull){
bag.newItem(s);
chestplate = "";
}else{
JOptionPane.showMessageDialog(null, "You do not have any room to remove the "+s);
}
}else if (b==3&&!leggings.equals("")){
if (!isBagFull){
bag.newItem(s);
leggings = "";
}else{
JOptionPane.showMessageDialog(null, "You do not have any room to remove the "+s);
}
}else if (b==4&&!boots.equals("")){
if (!isBagFull){
bag.newItem(s);
boots = "";
}else{
JOptionPane.showMessageDialog(null, "You do not have any room to remove the "+s);
}
}else if (b>=5||b<=0){
JOptionPane.showMessageDialog(null, "Sorry you don't have the correct position!", "ERROR", 0);
JOptionPane.showMessageDialog(null, "Helmet = 1 \n Chestplate = 2 \n Leggings = 3 \n Boots = 4", "Armour Numbers", 0);
}else{
JOptionPane.showMessageDialog(null, "You ar not wearing anything there!");
}
}
之后 - Capistrano版本:3.6.1(耙子版本:10.4.2)
" >> /deployment/temp/xx.sh
INFO [0e2f8651] Finished in 0.021 seconds with exit status 0 (successful).
INFO [7b2cf9d6] Running /usr/bin/env chmod u=rx,g=rx,o=rx /xx/temp/xxx.sh as xx@xxx
DEBUG [7b2cf9d6] Command: /usr/bin/env chmod u=x,g=rx,o=rx /xx/temp/xxx
INFO [7b2cf9d6] Finished in 0.018 seconds with exit status 0 (successful).
INFO [57f78a45] Running /usr/bin/env sudo cp -f /xx/temp/xx.sh /etc/init.d/xxx as dx@xx
DEBUG [57f78a45] Command: /usr/bin/env sudo cp -f /xx/temp/xxx.sh /etc/init.d/xxx
INFO [57f78a45] Finished in 0.028 seconds with exit status 0 (successful).
INFO [693eb1d8] Running /usr/bin/env sudo /sbin/chkconfig --add xxx as xxx@xxx
我希望输出像第一种风格。 我可以在哪里配置解决它?
答案 0 :(得分:0)
在deploy.rb
中,设置日志级别:
set :log_level, :info