Skip to content

Commit

Permalink
show verbosity level when verbose is not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Jan 22, 2024
1 parent 179dd3a commit 4ce4082
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/front/front.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ class Front : public FrontAPI, public gdi::GraphicApi
.enable_shared_control = guest_params.enable_shared_control,
}
{
LOG_IF(bool(verbose), LOG_INFO, "Front::verbosity=0x%x", underlying_cast(verbose));

client_info.screen_info = guest_params.screen_info;

using namespace std::literals::chrono_literals;
Expand Down
12 changes: 7 additions & 5 deletions src/mod/rdp/rdp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2026,6 +2026,8 @@ class mod_rdp : public mod_api, public rdp_api, public sespro_api
(void)session_log;
#endif

LOG_IF(bool(verbose), LOG_INFO, "mod_rdp::verbosity=0x%x", underlying_cast(verbose));

using namespace std::literals::chrono_literals;

if (this->enable_remotefx){
Expand Down Expand Up @@ -3216,7 +3218,7 @@ class mod_rdp : public mod_api, public rdp_api, public sespro_api
if (this->channels.session_probe.enable_launch_mask) {
this->delayed_start_capture = true;

LOG(LOG_INFO, "Mod_rdp: Capture starting is delayed.");
LOG(LOG_INFO, "mod_rdp: Capture starting is delayed.");
}
else
#endif
Expand Down Expand Up @@ -6055,19 +6057,19 @@ class mod_rdp : public mod_api, public rdp_api, public sespro_api
public:
void disable_input_event()
{
LOG(LOG_INFO, "Mod_rdp: disable input event.");
LOG(LOG_INFO, "mod_rdp: disable input event.");
this->input_event_disabled = true;
}

void enable_input_event()
{
LOG(LOG_INFO, "Mod_rdp: enable input event.");
LOG(LOG_INFO, "mod_rdp: enable input event.");
this->input_event_disabled = false;
}

void disable_graphics_update()
{
LOG(LOG_INFO, "Mod_rdp: Disable graphics update.");
LOG(LOG_INFO, "mod_rdp: Disable graphics update.");
this->graphics_update_disabled = true;

#ifndef __EMSCRIPTEN__
Expand All @@ -6079,7 +6081,7 @@ class mod_rdp : public mod_api, public rdp_api, public sespro_api

void enable_graphics_update()
{
LOG(LOG_INFO, "Mod_rdp: Enable graphics update.");
LOG(LOG_INFO, "mod_rdp: Enable graphics update.");
bool need_full_screen_update = this->graphics_update_disabled;
this->graphics_update_disabled = false;

Expand Down
2 changes: 2 additions & 0 deletions src/mod/vnc/vnc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ mod_vnc::mod_vnc( Transport & t
, frame_buffer_update_ctx(this->zd, verbose)
, clipboard_data_ctx(verbose)
{
LOG_IF(bool(verbose), LOG_INFO, "mod_vnc::verbosity=0x%x", underlying_cast(verbose));

LOG_IF(bool(this->verbose & VNCVerbose::basic_trace), LOG_INFO, "Creation of new mod 'VNC'");

std::snprintf(this->username, sizeof(this->username), "%s", username);
Expand Down

0 comments on commit 4ce4082

Please sign in to comment.