Increased loglevel of central drag drop related messages
This commit is contained in:
parent
b125cf3da7
commit
36d9efbc64
|
@ -43,7 +43,7 @@ DropHelper::writeToDir(const String& destination, DragFileList& fileList, String
|
||||||
file.write(data.c_str(), data.size());
|
file.write(data.c_str(), data.size());
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
LOG((CLOG_DEBUG "%s is saved to %s", fileList.at(0).getFilename().c_str(), destination.c_str()));
|
LOG((CLOG_INFO "dropped file \"%s\" in \"%s\"", fileList.at(0).getFilename().c_str(), destination.c_str()));
|
||||||
|
|
||||||
fileList.clear();
|
fileList.clear();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1900,12 +1900,12 @@ std::string& MSWindowsScreen::getDraggingFilename()
|
||||||
m_draggingFilename = filename;
|
m_draggingFilename = filename;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LOG((CLOG_DEBUG "drag file name is invalid: %s", filename.c_str()));
|
LOG((CLOG_ERR "drag file name is invalid: %s", filename.c_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_draggingFilename.empty()) {
|
if (m_draggingFilename.empty()) {
|
||||||
LOG((CLOG_DEBUG "failed to get drag file name from OLE"));
|
LOG((CLOG_ERR "failed to get drag file name from OLE"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1920,7 +1920,7 @@ MSWindowsScreen::getDropTarget() const
|
||||||
char desktopPath[MAX_PATH];
|
char desktopPath[MAX_PATH];
|
||||||
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_DESKTOP, NULL, 0, desktopPath))) {
|
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_DESKTOP, NULL, 0, desktopPath))) {
|
||||||
m_dropTargetPath = std::string(desktopPath);
|
m_dropTargetPath = std::string(desktopPath);
|
||||||
LOG((CLOG_DEBUG "using desktop for drop target: %s", m_dropTargetPath.c_str()));
|
LOG((CLOG_INFO "using desktop for drop target: %s", m_dropTargetPath.c_str()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LOG((CLOG_ERR "failed to get desktop path, no drop target available, error=%d", GetLastError()));
|
LOG((CLOG_ERR "failed to get desktop path, no drop target available, error=%d", GetLastError()));
|
||||||
|
|
Loading…
Reference in New Issue