Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# org.onap.dcaegen2 

2# ============LICENSE_START==================================================== 

3# ============================================================================= 

4# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved. 

5# ============================================================================= 

6# Licensed under the Apache License, Version 2.0 (the "License"); 

7# you may not use this file except in compliance with the License. 

8# You may obtain a copy of the License at 

9# 

10# http://www.apache.org/licenses/LICENSE-2.0 

11# 

12# Unless required by applicable law or agreed to in writing, software 

13# distributed under the License is distributed on an "AS IS" BASIS, 

14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

15# See the License for the specific language governing permissions and 

16# limitations under the License. 

17# ============LICENSE_END====================================================== 

18 

19""" 

20PostgreSQL plugin to manage passwords 

21""" 

22 

23from cloudify import ctx 

24 

25# pragma pylint: disable=bad-indentation 

26 

27def debug(msg): 

28 """ 

29 Print a debugging message. 

30 This is a handy endpoint to add other extended debugging calls. 

31 """ 

32 ctx.logger.debug(msg) 

33 

34def warn(msg): 

35 """ 

36 Print a warning message. 

37 This is a handy endpoint to add other extended warning calls. 

38 """ 

39 ctx.logger.warn(msg) 

40 

41def error(msg): 

42 """ 

43 Print an error message. 

44 This is a handy endpoint to add other extended error calls. 

45 """ 

46 ctx.logger.error(msg) 

47 

48def info(msg): 

49 """ 

50 Print a info message. 

51 This is a handy endpoint to add other extended info calls. 

52 """ 

53 ctx.logger.info(msg)