aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/main/java/com/yahoo/vespa/config/server/session/SilentDeployLogger.java
blob: f2b1dbe23e8408d39cba539b828bd926ed483775 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.session;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.yahoo.config.application.api.DeployLogger;

/**
 * The purpose of this is to mute the log messages from model and application building in {@link RemoteSession} that
 * is triggered by {@link SessionStateWatcher}, since those messages already have been emitted by the prepare
 * handler, for the same prepare operation.
 * 
 * @author vegardh
 *
 */
public class SilentDeployLogger implements DeployLogger {

    private static final Logger log = Logger.getLogger(SilentDeployLogger.class.getName());
    
    @Override
    public void log(Level level, String message) {
        log.log(Level.FINE, message);
    }

}