2006-10-06 Esteban Sanchez <estebans@artica.es>
* pandora.cc, pandora.h: Added getPandoraDebug() to get the debug flag value. * pandora_windows_service.cc: Do not remove the data file if flag debug is active. * bin/PandoraAgent.exe: Updated to new changes. * ChangeLog: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@218 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
423e15c4ab
commit
647505d237
|
@ -1,29 +1,44 @@
|
|||
2006-10-06 Esteban Sanchez <estebans@artica.es>
|
||||
|
||||
* pandora.cc, pandora.h: Added getPandoraDebug() to get the debug
|
||||
flag value.
|
||||
|
||||
* pandora_windows_service.cc: Do not remove the data file if flag
|
||||
debug is active.
|
||||
|
||||
* bin/PandoraAgent.exe: Updated to new changes.
|
||||
|
||||
* ChangeLog: Style correction.
|
||||
|
||||
2006-10-05 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated installer to include
|
||||
Pair Key generation.
|
||||
* installer/Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated
|
||||
installer to include Pair Key generation.
|
||||
|
||||
* pandora.mpi: New file, installjammer installer. You should change PATHS
|
||||
to include the files into the installer.
|
||||
* installer/pandora.mpi: New file, installjammer installer. You should
|
||||
change PATHS to include the files into the installer.
|
||||
|
||||
* pandora.ico: New file, used in the installer.
|
||||
* installer/pandora.ico: New file, used in the installer.
|
||||
|
||||
* logo.gif: New file, used in the installer (it should be changed to .png)
|
||||
* installer/logo.gif: New file, used in the installer (it should be
|
||||
changed to .png)
|
||||
|
||||
2006-09-27 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated logo image and added
|
||||
shortcut to edit configuration file.
|
||||
* installer/Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated logo
|
||||
image and added shortcut to edit configuration file.
|
||||
|
||||
2006-09-22 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* installer/: New directory to put the Pandora Agent for Windows installer
|
||||
* installer/: New directory to put the Pandora Agent for Windows
|
||||
installer.
|
||||
|
||||
* Pandora Windows Agent-1.2 Beta3-Setup.exe: New file added to repository
|
||||
* Pandora Windows Agent-1.2 Beta3-Setup.exe: New file added to
|
||||
repository.
|
||||
|
||||
2006-09-20 Raul Mateos <raulofpandora@gmail.com>
|
||||
2006-09-22 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* win32\bin\pandora_agent.conf: Updated some texts to english
|
||||
* win32\bin\pandora_agent.conf: Updated some texts to english.
|
||||
|
||||
* win32\bin\README: Added
|
||||
|
||||
|
|
Binary file not shown.
|
@ -239,10 +239,11 @@ Pandora::getPandoraInstallPath () {
|
|||
/**
|
||||
* Set the debug flag.
|
||||
*
|
||||
* If the flag is false output wil be generated.
|
||||
* If the flag is true output wil be generated and XML files will not be deleted.
|
||||
*
|
||||
* @param dbg Turns the debug flag on/off.
|
||||
*
|
||||
* @see getPandoraDebug
|
||||
* @see pandoraDebug
|
||||
*/
|
||||
void
|
||||
|
@ -250,6 +251,20 @@ Pandora::setPandoraDebug (bool dbg) {
|
|||
pandora_debug = dbg;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the debug flag value.
|
||||
*
|
||||
* If the flag is truee output wil be generated and XML files will not be deleted.
|
||||
*
|
||||
* @see setPandoraDebug
|
||||
* @see pandoraDebug
|
||||
*/
|
||||
bool
|
||||
Pandora::getPandoraDebug () {
|
||||
return pandora_debug;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the version of the agent.
|
||||
*
|
||||
|
|
|
@ -57,6 +57,7 @@ namespace Pandora {
|
|||
void setPandoraInstallPath (string path);
|
||||
string getPandoraInstallPath ();
|
||||
void setPandoraDebug (bool dbg);
|
||||
bool getPandoraDebug ();
|
||||
string getPandoraAgentVersion ();
|
||||
|
||||
void pandoraDebug (char *format, ...);
|
||||
|
|
|
@ -234,19 +234,23 @@ Pandora_Windows_Service::pandora_run () {
|
|||
delete ssh_client;
|
||||
pandoraLog ("Pandora Agent: Authentication Failed when connecting to %s",
|
||||
remote_host.c_str ());
|
||||
if (getPandoraDebug () == false) {
|
||||
try {
|
||||
Pandora_File::removeFile (tmp_filepath);
|
||||
} catch (Pandora_File::Delete_Error e) {
|
||||
}
|
||||
}
|
||||
return;
|
||||
} catch (Pandora_Exception e) {
|
||||
delete ssh_client;
|
||||
pandoraLog ("Pandora Agent: Failed when copying to %s",
|
||||
remote_host.c_str ());
|
||||
if (getPandoraDebug () == false) {
|
||||
try {
|
||||
Pandora_File::removeFile (tmp_filepath);
|
||||
} catch (Pandora_File::Delete_Error e) {
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -266,20 +270,24 @@ Pandora_Windows_Service::pandora_run () {
|
|||
tmp_filename.c_str ());
|
||||
ssh_client->disconnect();
|
||||
delete ssh_client;
|
||||
if (getPandoraDebug () == false) {
|
||||
try {
|
||||
Pandora_File::removeFile (tmp_filepath);
|
||||
} catch (Pandora_File::Delete_Error e) {
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
ssh_client->disconnect();
|
||||
delete ssh_client;
|
||||
|
||||
if (getPandoraDebug () == false) {
|
||||
try {
|
||||
Pandora_File::removeFile (tmp_filepath);
|
||||
} catch (Pandora_File::Delete_Error e) {
|
||||
}
|
||||
}
|
||||
|
||||
pandoraDebug ("Execution number %d", execution_number);
|
||||
|
||||
|
|
Loading…
Reference in New Issue