This commit is contained in:
Benjamin Drieu 2023-11-08 11:37:39 +01:00
parent 09d7b3386b
commit a42ce2283d
3 changed files with 6 additions and 6 deletions

View File

@ -377,7 +377,7 @@ function createColumnsPrefTab ( noteBook, type, isActive )
{
let grid = new Gtk.Grid ( {
halign: Gtk.Align.FILL,
margin: 18,
// margin: 18,
column_spacing: 12,
row_spacing: 12,
visible: true,

View File

@ -85,7 +85,7 @@ var GenericServer = class {
prepareHttp ( )
{
if ( this._httpSession == null ) {
this.monitoLog ( 'Preparing new HTTP with strict SSL ' + this.strict_ssl );
// this.monitoLog ( 'Preparing new HTTP with strict SSL ' + this.strict_ssl );
this._httpSession = new Soup.Session();
this._httpSession.ssl_strict = this.strict_ssl;
this._httpSession.user_agent = Me.metadata.uuid;
@ -113,7 +113,7 @@ var GenericServer = class {
// this.monitoLog ( message.status_code );
// this.monitoLog ( message.response_body );
message.response_headers.foreach ((name, val) => {
this.monitoLog (name, val);
// this.monitoLog (name, val);
});
// this.monitoLog ( message.response_body.data );
@ -145,7 +145,7 @@ var GenericServer = class {
{
// if error, grep for class='errorMessage'
// else grep for class='successBox'
this.monitoLog ( 'Cmd output ' + _data );
// this.monitoLog ( 'Cmd output ' + _data );
}
}
catch ( e )

View File

@ -85,7 +85,7 @@ var Icinga2API = class extends GenericServer {
handlePollMessage ( _httpSession, message )
{
this.monitoLog ( 'handlePollMessage' );
// this.monitoLog ( 'handlePollMessage' );
let _data = super.handleMessage ( _httpSession, message );
try
@ -99,7 +99,7 @@ var Icinga2API = class extends GenericServer {
for ( var entry of json.results )
{
this.monitoLog ( JSON.stringify(entry) );
// this.monitoLog ( JSON.stringify(entry) );
var _attrs = entry.attrs;
_attrs [ 'real_host_name' ] = entry.attrs.host_name.repeat ( 1 );
_attrs [ 'status' ] = _statuses [ entry.attrs.state ];